public async Task <MessageModel <QuestionBank> > Get(int id) { if (!(id > 0)) { return(new MessageModel <QuestionBank>() { msg = $"id 为空:{id}", response = null }); } var model = await _questionBankRepository.QueryById(id); return(new MessageModel <QuestionBank>() { msg = "获取成功", success = true, response = model }); }