From 06c0b03df2955475fe39ff2a793a5f151f4da99f Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期四, 17 八月 2023 19:25:30 +0800 Subject: [PATCH] Merge branch 'master' into fly --- 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 e93ece3..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, 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, - Count: len(contracts), + List: contracts, + Count: int(total), }) } -- Gitblit v1.8.0