From 2030ec81f18f4ec9ea1800f13046acafff6d50f7 Mon Sep 17 00:00:00 2001 From: yinbentan <yinbentan@live.com> Date: 星期四, 26 九月 2024 00:48:59 +0800 Subject: [PATCH] 添加grpc方法:客户信息维护 --- constvar/const.go | 73 ++++++++++++++++++++++++++++++++++++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/constvar/const.go b/constvar/const.go index 1107c6f..8fcd40f 100644 --- a/constvar/const.go +++ b/constvar/const.go @@ -207,3 +207,76 @@ const ( SystemType = 2 ) + +// ModeType 妯″潡绫诲瀷 +type ModeType string + +const ( + BjdMode ModeType = "bjd" + XsmxMode ModeType = "xsmx" +) + +type systemSetID int + +const ( + systemSetIDQuotationLinkSalesChance systemSetID = 1 //鎶ヤ环鍗曟槸鍚﹀繀椤诲叧鑱旈攢鍞満浼� + systemSetIDSalesDetailsLinkQuotation systemSetID = 2 //閿�鍞槑缁嗗崟鏄惁蹇呴』鍏宠仈鎶ヤ环鍗� + systemSetIDSalesDetailsLinkSalesChance systemSetID = 3 //閿�鍞槑缁嗗崟鏄惁蹇呴』鍏宠仈涓氬姟鏈轰細 + systemSetIDCreateCollectionPlanAfterSalesDetails systemSetID = 4 //閿�鍞槑缁嗗垱寤哄悗鏄惁鑷姩鐢熸垚鏀舵璁″垝 + systemSetIDSalesDetailsProductAutoSyncQuotationProduct systemSetID = 5 //閿�鍞槑缁嗕骇鍝佹槸鍚﹁嚜鍔ㄥ悓姝ユ姤浠峰崟浜у搧 +) + +var SystemSet = map[string]interface{}{ + "CRM": map[string]interface{}{ + "鎶ヤ环鍗曟槸鍚﹀繀椤诲叧鑱旈攢鍞満浼�": map[string]interface{}{ + "id": systemSetIDQuotationLinkSalesChance, + "value": "鏄�", + "type": "select", + "select": map[string]string{ + "1": "鏄�", + "2": "鍚�", + }, + "modeType": "bjd", + }, + "閿�鍞槑缁嗗崟鏄惁蹇呴』鍏宠仈鎶ヤ环鍗�": map[string]interface{}{ + "id": systemSetIDSalesDetailsLinkQuotation, + "value": "鏄�", + "type": "select", + "select": map[string]string{ + "1": "鏄�", + "2": "鍚�", + }, + "modeType": "xsmx", + }, + "閿�鍞槑缁嗗崟鏄惁蹇呴』鍏宠仈涓氬姟鏈轰細": map[string]interface{}{ + "id": systemSetIDSalesDetailsLinkSalesChance, + "value": "鏄�", + "type": "select", + "select": map[string]string{ + "1": "鏄�", + "2": "鍚�", + }, + "modeType": "xsmx", + }, + "閿�鍞槑缁嗗垱寤哄悗鏄惁鑷姩鐢熸垚鏀舵璁″垝": map[string]interface{}{ + "id": systemSetIDCreateCollectionPlanAfterSalesDetails, + "value": "鏄�", + "type": "select", + "select": map[string]string{ + "1": "鏄�", + "2": "鍚�", + }, + "modeType": "xsmx", + }, + "閿�鍞槑缁嗕骇鍝佹槸鍚﹁嚜鍔ㄥ悓姝ユ姤浠峰崟浜у搧": map[string]interface{}{ + "id": systemSetIDSalesDetailsProductAutoSyncQuotationProduct, + "value": "鏄�", + "type": "select", + "select": map[string]string{ + "1": "鏄�", + "2": "鍚�", + }, + "modeType": "xsmx", + }, + }, +} -- Gitblit v1.8.0