From 3369456ac6de01e8703a9b38537406ec7c550bc5 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 25 八月 2023 11:05:45 +0800
Subject: [PATCH] fix

---
 model/salesLeads.go |    3 ++-
 pkg/ecode/msg.go    |    2 ++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/model/salesLeads.go b/model/salesLeads.go
index d9c52c6..d11db66 100644
--- a/model/salesLeads.go
+++ b/model/salesLeads.go
@@ -9,7 +9,8 @@
 type (
 	SalesLeads struct {
 		Id              int                  `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
-		Name            string               `json:"name" gorm:"column:name;unique;type:varchar(255);comment:鍏徃鍚嶇О"`
+		Name            string               `json:"name" gorm:"column:name;uniqueIndex:name_isDeleted_idx;;type:varchar(255);comment:鍏徃鍚嶇О"`
+		IsDeleted       bool                 `json:"-" gorm:"column:is_deleted;uniqueIndex:name_isDeleted_idx;type:tinyint(1);comment:鏄惁鍒犻櫎"`
 		Number          string               `json:"number" gorm:"column:number;type:varchar(255);comment:閿�鍞嚎绱㈢紪鍙�"`
 		ContactName     string               `json:"contact_name" gorm:"column:contact_name;type:varchar(255);comment:鑱旂郴浜哄鍚�"`
 		ContactPhone    string               `json:"contact_phone" gorm:"column:contact_phone;type:varchar(255);comment:鑱旂郴浜虹數璇�"`
diff --git a/pkg/ecode/msg.go b/pkg/ecode/msg.go
index ef0a12a..2210c3a 100644
--- a/pkg/ecode/msg.go
+++ b/pkg/ecode/msg.go
@@ -26,6 +26,8 @@
 	SalesRefundProductNotExist:                                 "閫�璐т骇鍝佷笉瀛樺湪",
 	SalesRefundProductPriceOrAmountErr:                         "閫�璐т骇鍝佷环鏍兼垨鏁伴噺閿欒",
 	SalesRefundProductBeyondTotalAmount:                        "閫�璐т骇鍝佸搴旀�讳环瓒呭嚭搴旈��鎬讳环",
+	SalesSourceExist:                                           "閿�鍞嚎绱㈠凡瀛樺湪",
+	SalesLeadsExist:                                            "閿�鍞嚎绱㈠凡瀛樺湪",
 }
 
 func GetMsg(errCode int) (errMsg string) {

--
Gitblit v1.8.0