From 2def11ba83760b5be1361f10c3756cc0e9cfd165 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 14 八月 2023 09:32:13 +0800
Subject: [PATCH] merge

---
 api/v1/contract.go |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/api/v1/contract.go b/api/v1/contract.go
index e93ece3..ebd4cf2 100644
--- a/api/v1/contract.go
+++ b/api/v1/contract.go
@@ -135,7 +135,7 @@
 		return
 	}
 
-	contracts, errCode := contractService.GetContractList(params.Page, params.PageSize, params.Keyword)
+	contracts, total, errCode := contractService.GetContractList(params.Page, params.PageSize, params.Keyword)
 	if errCode != ecode.OK {
 		ctx.Fail(errCode)
 		return
@@ -143,6 +143,6 @@
 
 	ctx.OkWithDetailed(response.ContractResponse{
 		List: contracts,
-		Count: len(contracts),
+		Count: int(total),
 	})
-}
+}
\ No newline at end of file

--
Gitblit v1.8.0