From e1c0fe2768d32f79920ceda92383981d4ff12058 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 15 三月 2024 10:07:50 +0800
Subject: [PATCH] 获取销售明细产品信息
---
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