From b4400a06b5f801bc7a85320680d0b6c45c547ff0 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 28 七月 2023 10:21:33 +0800 Subject: [PATCH] fix --- service/plan.go | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/service/plan.go b/service/plan.go index 1d34051..b1fc531 100644 --- a/service/plan.go +++ b/service/plan.go @@ -44,11 +44,11 @@ return ecode.OK } -func (PlanService) GetPlanList(page, pageSize int, keyword string) ([]*model.Plan, int) { +func (PlanService) GetPlanList(page, pageSize int, keyword string) ([]*model.Plan, int64, int) { // get contact list - contacts, err := model.NewPlanSearch().SetKeyword(keyword).SetPage(page, pageSize).FindAll() + contacts, total, err := model.NewPlanSearch().SetKeyword(keyword).SetPage(page, pageSize).FindAll() if err != nil { - return nil, ecode.PlanListErr + return nil, 0, ecode.PlanListErr } - return contacts, ecode.OK + return contacts, total, ecode.OK } -- Gitblit v1.8.0