From b4201a0054369a8cd89e940947fd6f1a89f357c2 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期三, 02 八月 2023 13:38:24 +0800
Subject: [PATCH] Merge branch 'master' into fly

---
 service/orderManage.go |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/service/orderManage.go b/service/orderManage.go
index 93b8219..c66b8b1 100644
--- a/service/orderManage.go
+++ b/service/orderManage.go
@@ -29,15 +29,6 @@
 	return ecode.OK
 }
 
-func (OrderManageService) GetOrderManageList() ([]*model.OrderManage, int) {
-	list, err := model.NewOrderManageSearch().FindAll()
-	if err != nil {
-		return nil, ecode.OrderManageListErr
-	}
-
-	return list, ecode.OK
-}
-
 func (OrderManageService) UpdateOrderManage(orderManage *model.OrderManage) int {
 	// check orderManage exist
 	_, err := model.NewOrderManageSearch().SetId(orderManage.Id).Find()
@@ -52,3 +43,12 @@
 
 	return ecode.OK
 }
+
+func (OrderManageService) GetOrderManageList(page, pageSize int, keyword string) ([]*model.OrderManage, int64, int) {
+	// get contact list
+	contacts, total, err := model.NewOrderManageSearch().SetKeyword(keyword).SetPage(page, pageSize).FindAll()
+	if err != nil {
+		return nil, 0, ecode.OrderManageListErr
+	}
+	return contacts, total, ecode.OK
+}

--
Gitblit v1.8.0