public OperationResult <CustomerLawyerData> GetInfoById([FromBody] string queryString) { var result = new OperationResult <CustomerLawyerData>(); if (string.IsNullOrEmpty(queryString) || queryString == "{}") { result.Message = "请求参数为NULL"; return(result); } var request = JsonHelper.Build <RequestOperation <int> >(queryString); if (request.Body <= -1) { result.Message = "请求参数为NULL"; return(result); } var verify = ValidaQueryString.Valida(request.Header); if (verify.ErrCode != 0) { result.ErrCode = verify.ErrCode; result.Message = verify.Message; return(result); } result = service.GetCustomerById(request); return(result); }
public OperationResult <CustomerLawyerData> GetCustomerById(RequestOperation <int> request) { var result = new OperationResult <CustomerLawyerData>(); if (request == null) { result.Message = "请求参数为NULL"; return(result); } var verify = ValidaQueryString.Valida(request.Header); if (verify.ErrCode != 0) { result.ErrCode = verify.ErrCode; result.Message = verify.Message; return(result); } result = service.GetCustomerById(request); return(result); }