public async Task <MessageModel <string> > Post([FromBody] Department request) { var data = new MessageModel <string>(); var id = await _departmentServices.Add(request); data.success = id > 0; if (data.success) { data.response = id.ObjToString(); data.msg = "添加成功"; } return(data); }