From d28815a491eac43ad9153b7a83f27ce72d64a47e Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 06 二月 2024 14:47:29 +0800
Subject: [PATCH] 兼容
---
constvar/const.go | 83 +++++++++++++++++++++++++++++++----------
1 files changed, 63 insertions(+), 20 deletions(-)
diff --git a/constvar/const.go b/constvar/const.go
index 20784bc..c81270e 100644
--- a/constvar/const.go
+++ b/constvar/const.go
@@ -32,13 +32,6 @@
UserTypeSub // 瀛愯处鎴�
)
-type NotAdmin int
-
-const (
- NotAdminAll NotAdmin = iota // 鍏捣
- NotAdminYes // 鎴戠殑瀹㈡埛
-)
-
type SalesStatus int
const (
@@ -137,24 +130,26 @@
type CodeStandardType string
const (
- CodeStandardTypeSaleLead CodeStandardType = "閿�鍞嚎绱㈢紪鐮�"
- CodeStandardTypeCustom CodeStandardType = "瀹㈡埛缂栫爜"
- CodeStandardTypeContact CodeStandardType = "鑱旂郴浜虹紪鐮�"
- CodeStandardTypeFollowRecord CodeStandardType = "璺熻繘璁板綍缂栫爜"
- CodeStandardTypeSaleKey CodeStandardType = "閿�鍞満浼氱紪鐮�"
- CodeStandardTypeQuotation CodeStandardType = "鎶ヤ环缂栫爜"
- CodeStandardTypeSaleTotalOrder CodeStandardType = "閿�鍞�诲崟缂栫爜"
- CodeStandardTypeSaleSuborder CodeStandardType = "閿�鍞瓙鍗曠紪鐮�"
- CodeStandardTypeSaleRefund CodeStandardType = "閿�鍞��娆剧紪鐮�"
- CodeStandardTypeContract CodeStandardType = "鍚堝悓缂栫爜"
- CodeStandardTypeServerContract CodeStandardType = "鏈嶅姟鍚堝悓缂栫爜"
- CodeStandardTypeServerFollow CodeStandardType = "鏈嶅姟鍥炶缂栫爜"
+ CodeStandardTypeSaleLead CodeStandardType = "閿�鍞嚎绱㈢紪鐮�"
+ CodeStandardTypeCustom CodeStandardType = "瀹㈡埛缂栫爜"
+ CodeStandardTypeFollowRecord CodeStandardType = "璺熻繘璁板綍缂栫爜"
+ CodeStandardTypeSaleKey CodeStandardType = "閿�鍞満浼氱紪鐮�"
+ CodeStandardTypeQuotation CodeStandardType = "鎶ヤ环缂栫爜"
+ CodeStandardTypeSaleTotalOrder CodeStandardType = "閿�鍞�诲崟缂栫爜"
+ CodeStandardTypeSaleSuborder CodeStandardType = "閿�鍞瓙鍗曠紪鐮�"
+ CodeStandardTypeSaleRefund CodeStandardType = "閿�鍞��娆剧紪鐮�"
+ CodeStandardTypeContract CodeStandardType = "鍚堝悓缂栫爜"
+ CodeStandardTypeServerContract CodeStandardType = "鏈嶅姟鍚堝悓缂栫爜"
+ CodeStandardTypeServerFollow CodeStandardType = "鏈嶅姟鍥炶缂栫爜"
+ CodeStandardTypeCustomServer CodeStandardType = "瀹㈡埛鏈嶅姟缂栫爜"
+ CodeStandardTypeSaleInvoice CodeStandardType = "閿�鍞彂绁ㄧ紪鐮�"
+ CodeStandardTypeSaleDetail CodeStandardType = "閿�鍞槑缁嗙紪鐮�"
+ CodeStandardTypeSaleReturnGoods CodeStandardType = "閿�鍞��璐х紪鐮�"
)
func (t CodeStandardType) Valid() bool {
if t != CodeStandardTypeSaleLead &&
t != CodeStandardTypeCustom &&
- t != CodeStandardTypeContact &&
t != CodeStandardTypeFollowRecord &&
t != CodeStandardTypeSaleKey &&
t != CodeStandardTypeQuotation &&
@@ -163,6 +158,10 @@
t != CodeStandardTypeSaleRefund &&
t != CodeStandardTypeContract &&
t != CodeStandardTypeServerContract &&
+ t != CodeStandardTypeCustomServer &&
+ t != CodeStandardTypeSaleInvoice &&
+ t != CodeStandardTypeSaleDetail &&
+ t != CodeStandardTypeSaleReturnGoods &&
t != CodeStandardTypeServerFollow {
return false
}
@@ -204,3 +203,47 @@
}
return true
}
+
+const (
+ SystemType = 2
+)
+
+// ModeType 妯″潡绫诲瀷
+type ModeType string
+
+const (
+ BjdMode ModeType = "bjd"
+ XsmxMode ModeType = "xsmx"
+)
+
+var SystemSet = map[string]interface{}{
+ "CRM": map[string]interface{}{
+ "鎶ヤ环鍗曟槸鍚﹀繀椤诲叧鑱旈攢鍞満浼�": map[string]interface{}{
+ "value": "鏄�",
+ "type": "select",
+ "select": map[string]string{
+ "1": "鏄�",
+ "2": "鍚�",
+ },
+ "modeType": "bjd",
+ },
+ "閿�鍞槑缁嗗崟鏄惁蹇呴』鍏宠仈鎶ヤ环鍗�": map[string]interface{}{
+ "value": "鏄�",
+ "type": "select",
+ "select": map[string]string{
+ "1": "鏄�",
+ "2": "鍚�",
+ },
+ "modeType": "xsmx",
+ },
+ "閿�鍞槑缁嗗崟鏄惁蹇呴』鍏宠仈涓氬姟鏈轰細": map[string]interface{}{
+ "value": "鏄�",
+ "type": "select",
+ "select": map[string]string{
+ "1": "鏄�",
+ "2": "鍚�",
+ },
+ "modeType": "xsmx",
+ },
+ },
+}
--
Gitblit v1.8.0