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/orderManage.go |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/service/orderManage.go b/service/orderManage.go
index 0e2dbff..c66b8b1 100644
--- a/service/orderManage.go
+++ b/service/orderManage.go
@@ -44,11 +44,11 @@
 	return ecode.OK
 }
 
-func (OrderManageService) GetOrderManageList(page, pageSize int, keyword string) ([]*model.OrderManage, int) {
+func (OrderManageService) GetOrderManageList(page, pageSize int, keyword string) ([]*model.OrderManage, int64, int) {
 	// get contact list
-	contacts, err := model.NewOrderManageSearch().SetKeyword(keyword).SetPage(page, pageSize).FindAll()
+	contacts, total, err := model.NewOrderManageSearch().SetKeyword(keyword).SetPage(page, pageSize).FindAll()
 	if err != nil {
-		return nil, ecode.OrderManageListErr
+		return nil, 0, ecode.OrderManageListErr
 	}
-	return contacts, ecode.OK
+	return contacts, total, ecode.OK
 }

--
Gitblit v1.8.0