From b4400a06b5f801bc7a85320680d0b6c45c547ff0 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 28 七月 2023 10:21:33 +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