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/contact.go | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v1/contact.go b/api/v1/contact.go index 136b7ab..2fd3dd4 100644 --- a/api/v1/contact.go +++ b/api/v1/contact.go @@ -160,7 +160,7 @@ return } - contacts, errCode := contactService.GetContactList(params.Page, params.PageSize, params.Keyword) + contacts, total, errCode := contactService.GetContactList(params.Page, params.PageSize, params.Keyword) if errCode != ecode.OK { ctx.Fail(errCode) return @@ -168,6 +168,6 @@ ctx.OkWithDetailed(response.ContactResponse{ List: contacts, - Count: len(contacts), + Count: int(total), }) -} +} \ No newline at end of file -- Gitblit v1.8.0