From d4bf53dd19a45ef09a367babcf7a2ac04ae1d08f Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期二, 17 十月 2023 14:31:31 +0800
Subject: [PATCH] bug修改

---
 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