public async Task <PagingResponseMessage <ShopInfoResponse> > GetShopsList(UserInfo user, [FromBody] ShopSearchCondition condition) { PagingResponseMessage <ShopInfoResponse> response = new PagingResponseMessage <ShopInfoResponse>(); if (!ModelState.IsValid) { response.Code = ResponseCodeDefines.ModelStateInvalid; response.Message = ModelState.GetAllErrors(); Logger.Warn($"用户{user?.UserName ?? ""}({user?.Id ?? ""})获取商铺列表(GetShopsList)模型验证失败:\r\n{response.Message ?? ""},\r\n请求参数为:\r\n" + (condition != null ? JsonHelper.ToJson(condition) : "")); return(response); } try { return(await _shopsManager.SimpleSearch(user, condition)); } catch (Exception e) { response.Code = ResponseCodeDefines.ServiceError; response.Message = e.ToString(); Logger.Error($"用户{user?.UserName ?? ""}({user?.Id ?? ""})获取商铺列表(GetShopsList)请求失败:\r\n{e.ToString()},\r\n请求参数为:\r\n" + (condition != null ? JsonHelper.ToJson(condition) : "")); } return(response); }