From 530fed8ec225453572d57b15c200ab062c335457 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期三, 01 十一月 2023 19:20:21 +0800
Subject: [PATCH] 公海member_id使用0

---
 constvar/const.go |  337 ++++++++++++++++++++++++++++++++++---------------------
 1 files changed, 209 insertions(+), 128 deletions(-)

diff --git a/constvar/const.go b/constvar/const.go
index b73c7f0..1107c6f 100644
--- a/constvar/const.go
+++ b/constvar/const.go
@@ -1,128 +1,209 @@
-package constvar
-
-type UserStatus int
-
-const (
-	UserBan UserStatus = iota
-	UserAlive
-	UserExamineIng
-)
-
-type DeviceStatus int
-
-const (
-	DeviceAll DeviceStatus = iota + 1
-	DeviceAlive
-	DeviceOffline
-)
-
-type ClusterStatus int
-
-const (
-	ClusterAll ClusterStatus = iota + 1
-	ClusterAlive
-	ClusterOffline
-)
-
-type UserType int
-
-const (
-	UserTypeSuper   UserType = iota + 1 // 瓒呯骇绠$悊鍛�
-	UserTypePrimary                     // 涓昏处鎴�
-	UserTypeSub                         // 瀛愯处鎴�
-)
-
-type SalesStatus int
-
-const (
-	SalesStatusFail                          SalesStatus = -1   // 澶辫触
-	SalesStatusNew                           SalesStatus = iota // 鏂板缓
-	SalesStatusIng                                              // 杩涜涓�
-	SalesStatusSuccess                                          // 鎴愬姛
-	SalesStatusLevelUptoClient                                  // 鍗囩骇涓哄鎴�
-	SalesStatusLevelUptoClientAndSalesChance                    // 鍗囩骇涓哄鎴峰苟涓旀湁閿�鍞満浼�
-)
-
-type CurrencyType int
-
-const (
-	CurrencyTypeCNY CurrencyType = iota + 1 // 浜烘皯甯�
-	CurrencyTypeUSD                         // 缇庡厓
-	CurrencyTypeEUR                         // 娆у厓
-	CurrencyTypeGBP                         // 鑻遍晳
-)
-
-type MenuType string
-
-const (
-	MenuTypeClient MenuType = "client"
-)
-
-type VettingType int
-
-const (
-	VettingTypeClient VettingType = iota + 1
-	VettingTypeSales
-	VettingTypeSalesChance
-	VettingTypeSalesChanceFollow
-)
-
-type ServiceContractQueryClass string
-
-const (
-	ServiceContractQueryClassExpireAfter30Day   ServiceContractQueryClass = "30澶╁悗杩囨湡"
-	ServiceContractQueryClassExpireAfter60Day   ServiceContractQueryClass = "60澶╁悗杩囨湡"
-	ServiceContractQueryClassExpiredBefore15Day ServiceContractQueryClass = "宸茶繃鏈�15澶�"
-	ServiceContractQueryClassExpiredBefore60Day ServiceContractQueryClass = "宸茶繃鏈�60澶�"
-)
-
-type ServiceContractKeywordType string
-
-const (
-	ServiceContractKeywordContractNo        ServiceContractKeywordType = "鏈嶅姟鍚堝悓缂栧彿"
-	ServiceContractKeywordCustomerName      ServiceContractKeywordType = "瀹㈡埛鍚嶇О"
-	ServiceContractKeywordContractDate      ServiceContractKeywordType = "绛剧害鏃ユ湡"
-	ServiceContractKeywordContractType      ServiceContractKeywordType = "鍚堝悓绫诲瀷"
-	ServiceContractKeywordContractStatus    ServiceContractKeywordType = "鍚堝悓鐘舵��"
-	ServiceContractKeywordPrincipal         ServiceContractKeywordType = "璐熻矗浜�"
-	ServiceContractKeywordProductName       ServiceContractKeywordType = "浜у搧鍚嶇О"
-	ServiceContractKeywordServiceBeginDate  ServiceContractKeywordType = "鏈嶅姟寮�濮嬫棩"
-	ServiceContractKeywordServiceEndDate    ServiceContractKeywordType = "鏈嶅姟鍒版湡鏃�"
-	ServiceContractKeywordServiceTotalPrice ServiceContractKeywordType = "浠风◣鍚堣"
-)
-
-type ServiceFollowupKeywordType string
-
-const (
-	ServiceFollowupKeywordFollowupNo         ServiceFollowupKeywordType = "鍥炶鍗曠紪鍙�"
-	ServiceFollowupKeywordCustomerName       ServiceFollowupKeywordType = "瀹㈡埛鍚嶇О"
-	ServiceFollowupKeywordContactName        ServiceFollowupKeywordType = "鑱旂郴浜哄鍚�"
-	ServiceFollowupKeywordCustomerServiceNo  ServiceFollowupKeywordType = "瀹㈡埛鏈嶅姟鍗�"
-	ServiceFollowupKeywordVisitor            ServiceFollowupKeywordType = "鍥炶浜�"
-	ServiceFollowupKeywordSatisfactionDegree ServiceFollowupKeywordType = "婊℃剰搴�"
-)
-
-type ServiceFeeQueryClass string
-
-const (
-	ServiceFeeQueryClassExpireLessThen60Days ServiceFeeQueryClass = "杩囨湡鏈弧60澶�"
-	ServiceFeeQueryClassExpireLessThen30Days ServiceFeeQueryClass = "杩囨湡鏈弧30澶�"
-	ServiceFeeQueryClassExpireAboutTo60Day   ServiceFeeQueryClass = "鍗冲皢杩囨湡60澶�"
-	ServiceFeeQueryClassExpireAboutTo30Day   ServiceFeeQueryClass = "鍗冲皢杩囨湡30澶�"
-	ServiceFeeQueryClassExpired              ServiceFeeQueryClass = "宸茶繃鏈�"
-	ServiceFeeQueryClassNoService            ServiceFeeQueryClass = "鏃犳湇鍔�"
-)
-
-type ServiceFeeKeywordType string
-
-const (
-	ServiceFeeKeywordCustomerName   ServiceFeeKeywordType = "瀹㈡埛鍚嶇О"
-	ServiceFeeKeywordCustomerType   ServiceFeeKeywordType = "瀹㈡埛绫诲瀷"
-	ServiceFeeKeywordSalesPrincipal ServiceFeeKeywordType = "閿�鍞礋璐d汉"
-	ServiceFeeKeywordCustomerScale  ServiceFeeKeywordType = "瀹㈡埛瑙勬ā"
-	ServiceFeeKeywordClientLevel    ServiceFeeKeywordType = "閲嶈绾у埆"
-	ServiceFeeKeywordCustomerNo     ServiceFeeKeywordType = "瀹㈡埛缂栧彿"
-	ServiceFeeKeywordCustomerStatus ServiceFeeKeywordType = "瀹㈡埛鐘舵��"
-	ServiceFeeKeywordProductName    ServiceFeeKeywordType = "浜у搧鍚嶇О"
-	ServiceFeeKeywordServiceEndDate ServiceFeeKeywordType = "鏈嶅姟鍒版湡鏃�"
-)
+package constvar
+
+type UserStatus int
+
+const (
+	UserBan UserStatus = iota
+	UserAlive
+	UserExamineIng
+)
+
+type DeviceStatus int
+
+const (
+	DeviceAll DeviceStatus = iota + 1
+	DeviceAlive
+	DeviceOffline
+)
+
+type ClusterStatus int
+
+const (
+	ClusterAll ClusterStatus = iota + 1
+	ClusterAlive
+	ClusterOffline
+)
+
+type UserType int
+
+const (
+	UserTypeSuper   UserType = iota + 1 // 瓒呯骇绠$悊鍛�
+	UserTypePrimary                     // 涓昏处鎴�
+	UserTypeSub                         // 瀛愯处鎴�
+)
+
+type SalesStatus int
+
+const (
+	SalesStatusNew                           SalesStatus = iota // 鏂板缓
+	SalesStatusIng                                              // 杩涜涓�
+	SalesStatusLevelUptoClient                                  // 鍗囩骇涓哄鎴�
+	SalesStatusLevelUptoClientAndSalesChance                    // 鍗囩骇涓哄鎴峰苟涓旀湁閿�鍞満浼�
+	SalesStatusFail                          SalesStatus = -1   // 澶辫触
+)
+
+type CurrencyType int
+
+const (
+	CurrencyTypeCNY CurrencyType = iota + 1 // 浜烘皯甯�
+	CurrencyTypeUSD                         // 缇庡厓
+	CurrencyTypeEUR                         // 娆у厓
+	CurrencyTypeGBP                         // 鑻遍晳
+)
+
+type MenuType string
+
+const (
+	MenuTypeClient MenuType = "client"
+)
+
+type VettingType int
+
+const (
+	VettingTypeClient VettingType = iota + 1
+	VettingTypeSales
+	VettingTypeSalesChance
+	VettingTypeSalesChanceFollow
+)
+
+type ServiceContractQueryClass string
+
+const (
+	ServiceContractQueryClassExpireAfter30Day   ServiceContractQueryClass = "30澶╁悗杩囨湡"
+	ServiceContractQueryClassExpireAfter60Day   ServiceContractQueryClass = "60澶╁悗杩囨湡"
+	ServiceContractQueryClassExpiredBefore15Day ServiceContractQueryClass = "宸茶繃鏈�15澶�"
+	ServiceContractQueryClassExpiredBefore60Day ServiceContractQueryClass = "宸茶繃鏈�60澶�"
+)
+
+type ServiceContractKeywordType string
+
+const (
+	ServiceContractKeywordContractNo        ServiceContractKeywordType = "鏈嶅姟鍚堝悓缂栧彿"
+	ServiceContractKeywordCustomerName      ServiceContractKeywordType = "瀹㈡埛鍚嶇О"
+	ServiceContractKeywordContractDate      ServiceContractKeywordType = "绛剧害鏃ユ湡"
+	ServiceContractKeywordContractType      ServiceContractKeywordType = "鍚堝悓绫诲瀷"
+	ServiceContractKeywordContractStatus    ServiceContractKeywordType = "鍚堝悓鐘舵��"
+	ServiceContractKeywordPrincipal         ServiceContractKeywordType = "璐熻矗浜�"
+	ServiceContractKeywordProductName       ServiceContractKeywordType = "浜у搧鍚嶇О"
+	ServiceContractKeywordServiceBeginDate  ServiceContractKeywordType = "鏈嶅姟寮�濮嬫棩"
+	ServiceContractKeywordServiceEndDate    ServiceContractKeywordType = "鏈嶅姟鍒版湡鏃�"
+	ServiceContractKeywordServiceTotalPrice ServiceContractKeywordType = "浠风◣鍚堣"
+)
+
+type ServiceFollowupKeywordType string
+
+const (
+	ServiceFollowupKeywordFollowupNo         ServiceFollowupKeywordType = "鍥炶鍗曠紪鍙�"
+	ServiceFollowupKeywordCustomerName       ServiceFollowupKeywordType = "瀹㈡埛鍚嶇О"
+	ServiceFollowupKeywordContactName        ServiceFollowupKeywordType = "鑱旂郴浜哄鍚�"
+	ServiceFollowupKeywordCustomerServiceNo  ServiceFollowupKeywordType = "瀹㈡埛鏈嶅姟鍗�"
+	ServiceFollowupKeywordVisitor            ServiceFollowupKeywordType = "鍥炶浜�"
+	ServiceFollowupKeywordSatisfactionDegree ServiceFollowupKeywordType = "婊℃剰搴�"
+)
+
+type ServiceFeeQueryClass string
+
+const (
+	ServiceFeeQueryClassExpireLessThen60Days ServiceFeeQueryClass = "杩囨湡鏈弧60澶�"
+	ServiceFeeQueryClassExpireLessThen30Days ServiceFeeQueryClass = "杩囨湡鏈弧30澶�"
+	ServiceFeeQueryClassExpireAboutTo60Day   ServiceFeeQueryClass = "鍗冲皢杩囨湡60澶�"
+	ServiceFeeQueryClassExpireAboutTo30Day   ServiceFeeQueryClass = "鍗冲皢杩囨湡30澶�"
+	ServiceFeeQueryClassExpired              ServiceFeeQueryClass = "宸茶繃鏈�"
+	ServiceFeeQueryClassNoService            ServiceFeeQueryClass = "鏃犳湇鍔�"
+)
+
+type ServiceFeeKeywordType string
+
+const (
+	ServiceFeeKeywordCustomerName   ServiceFeeKeywordType = "瀹㈡埛鍚嶇О"
+	ServiceFeeKeywordCustomerType   ServiceFeeKeywordType = "瀹㈡埛绫诲瀷"
+	ServiceFeeKeywordSalesPrincipal ServiceFeeKeywordType = "閿�鍞礋璐d汉"
+	ServiceFeeKeywordCustomerScale  ServiceFeeKeywordType = "瀹㈡埛瑙勬ā"
+	ServiceFeeKeywordClientLevel    ServiceFeeKeywordType = "閲嶈绾у埆"
+	ServiceFeeKeywordCustomerNo     ServiceFeeKeywordType = "瀹㈡埛缂栧彿"
+	ServiceFeeKeywordCustomerStatus ServiceFeeKeywordType = "瀹㈡埛鐘舵��"
+	ServiceFeeKeywordProductName    ServiceFeeKeywordType = "浜у搧鍚嶇О"
+	ServiceFeeKeywordServiceEndDate ServiceFeeKeywordType = "鏈嶅姟鍒版湡鏃�"
+)
+
+// CodeStandardType 缂栫爜绫诲瀷
+type CodeStandardType string
+
+const (
+	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 != CodeStandardTypeFollowRecord &&
+		t != CodeStandardTypeSaleKey &&
+		t != CodeStandardTypeQuotation &&
+		t != CodeStandardTypeSaleTotalOrder &&
+		t != CodeStandardTypeSaleSuborder &&
+		t != CodeStandardTypeSaleRefund &&
+		t != CodeStandardTypeContract &&
+		t != CodeStandardTypeServerContract &&
+		t != CodeStandardTypeCustomServer &&
+		t != CodeStandardTypeSaleInvoice &&
+		t != CodeStandardTypeSaleDetail &&
+		t != CodeStandardTypeSaleReturnGoods &&
+		t != CodeStandardTypeServerFollow {
+		return false
+	}
+	return true
+}
+
+// CodeGenerateMethod 缂栫爜鐢熸垚鏂瑰紡
+type CodeGenerateMethod int
+
+const (
+	CodeGenerateMethodManual CodeGenerateMethod = iota // 鎵嬪姩鐢熸垚
+	CodeGenerateMethodAuto                             // 鑷姩鐢熸垚
+)
+
+func (t CodeGenerateMethod) Valid() bool {
+	if t < CodeGenerateMethodManual ||
+		t > CodeGenerateMethodAuto {
+		return false
+	}
+	return true
+}
+
+// CommonStatus 甯哥敤鐘舵��
+type CommonStatus string
+
+const (
+	CommonStatusEnable  CommonStatus = "鍚敤"
+	CommonStatusDisable CommonStatus = "鏈惎鐢�"
+	CommonStatusScraped CommonStatus = "宸叉姤搴�"
+	CommonStatusUsing   CommonStatus = "浣跨敤涓�"
+)
+
+func (s CommonStatus) Valid() bool {
+	if s != CommonStatusEnable &&
+		s != CommonStatusDisable &&
+		s != CommonStatusScraped &&
+		s != CommonStatusUsing {
+		return false
+	}
+	return true
+}
+
+const (
+	SystemType = 2
+)

--
Gitblit v1.8.0