From a934b5ea45f84c71d9d309a1c69bfa21d1898b4a Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期四, 17 八月 2023 10:08:36 +0800 Subject: [PATCH] 增加服务人员返回 --- api/v1/contract.go | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/api/v1/contract.go b/api/v1/contract.go index ebd4cf2..4b94771 100644 --- a/api/v1/contract.go +++ b/api/v1/contract.go @@ -98,7 +98,6 @@ ctx.Ok() } - func checkContractParams(contract request.Contract) (errCode int, contractModel model.Contract) { //if contract.Number == "" { // return ecode.InvalidParams, contractModel @@ -135,14 +134,14 @@ return } - contracts, total, errCode := contractService.GetContractList(params.Page, params.PageSize, params.Keyword) + contracts, total, errCode := contractService.GetContractList(params.Page, params.PageSize, params.SearchMap) if errCode != ecode.OK { ctx.Fail(errCode) return } ctx.OkWithDetailed(response.ContractResponse{ - List: contracts, + List: contracts, Count: int(total), }) -} \ No newline at end of file +} -- Gitblit v1.8.0