From d7d7bd7e6635c18b26ddc8c3d9794600a719583b Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期四, 27 七月 2023 14:09:59 +0800
Subject: [PATCH] tmp

---
 model/salesLeads.go |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/model/salesLeads.go b/model/salesLeads.go
index 75647b6..a7f69f4 100644
--- a/model/salesLeads.go
+++ b/model/salesLeads.go
@@ -113,10 +113,11 @@
 	return
 }
 
-func (slf *SalesLeadsSearch) FindAll() (result []*SalesLeads, err error) {
+func (slf *SalesLeadsSearch) FindAll() ([]*SalesLeads, error) {
 	var db = slf.build()
-	err = db.Preload("FollowRecord").Find(&result).Error
-	return
+	var results []*SalesLeads
+	err := db.Preload("FollowRecord").Find(&results).Error
+	return results, err
 }
 
 func (slf *SalesLeadsSearch) SetId(id int) *SalesLeadsSearch {
@@ -148,4 +149,4 @@
 func (slf *SalesLeadsSearch) SetOrder(order string) *SalesLeadsSearch {
 	slf.OrderBy = order
 	return slf
-}
\ No newline at end of file
+}

--
Gitblit v1.8.0