From c59053ef98942526930480345636ad3bb7b55596 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期四, 27 七月 2023 14:28:40 +0800 Subject: [PATCH] fix --- service/serviceFeeManage.go | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/service/serviceFeeManage.go b/service/serviceFeeManage.go index e067ef2..5afaf9a 100644 --- a/service/serviceFeeManage.go +++ b/service/serviceFeeManage.go @@ -70,11 +70,11 @@ return ecode.OK } -func (FeeManageService) GetServiceFeeManageList(page, pageSize int, keyword string) ([]*model.ServiceFeeManage, int) { +func (FeeManageService) GetServiceFeeManageList(page, pageSize int, keyword string) ([]*model.ServiceFeeManage, int64, int) { // get contact list - contacts, err := model.NewServiceFeeManageSearch(nil).SetKeyword(keyword).SetPage(page, pageSize).FindAll() + contacts, total, err := model.NewServiceFeeManageSearch(nil).SetKeyword(keyword).SetPage(page, pageSize).FindAll() if err != nil { - return nil, ecode.ServiceFeeManageListErr + return nil, 0, ecode.ServiceFeeManageListErr } - return contacts, ecode.OK + return contacts, total, ecode.OK } -- Gitblit v1.8.0