public async Task <ResponseMessage <FileItemResponse> > GetFileInfo([FromRoute] string humanid) { var Response = new ResponseMessage <FileItemResponse>(); if (string.IsNullOrEmpty(humanid)) { Response.Code = ResponseCodeDefines.ModelStateInvalid; Response.Message = "请求参数不正确"; } try { Response.Extension = await _humanManage.GetFilelistAsync(humanid, HttpContext.RequestAborted); } catch (Exception e) { Response.Code = ResponseCodeDefines.ServiceError; Response.Message = "服务器错误:" + e.ToString(); Logger.Error("error"); } return(Response); }