From 13b9eb612f28bed4df5fc0241e27733f539bc2e3 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期一, 31 七月 2023 15:32:59 +0800 Subject: [PATCH] add --- 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