From 45a526194b33ddb4c7e668d7582e7481d0ca1fca Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期四, 27 七月 2023 10:09:25 +0800
Subject: [PATCH] fix

---
 api/v1/client.go |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/v1/client.go b/api/v1/client.go
index b691940..ad91842 100644
--- a/api/v1/client.go
+++ b/api/v1/client.go
@@ -192,7 +192,7 @@
 		return
 	}
 
-	clients, errCode := clientService.GetClientList(params.Page, params.PageSize, params.Keyword)
+	clients, total, errCode := clientService.GetClientList(params.Page, params.PageSize, params.Keyword)
 	if errCode != ecode.OK {
 		ctx.Fail(errCode)
 		return
@@ -200,6 +200,6 @@
 
 	ctx.OkWithDetailed(response.ClientResponse{
 		List:  clients,
-		Count: len(clients),
+		Count: int(total),
 	})
 }

--
Gitblit v1.8.0