作者 yangfu

字典

@@ -38,23 +38,24 @@ func (srv *CommonService) GetDictionaryByCode(getDictionaryQuery *query.GetDicti @@ -38,23 +38,24 @@ func (srv *CommonService) GetDictionaryByCode(getDictionaryQuery *query.GetDicti
38 {"按钮", "button"}, 38 {"按钮", "button"},
39 }, 39 },
40 }) 40 })
41 - case "scale": 41 + case "XTZD-001":
42 dictionaries = append(dictionaries, map[string]interface{}{ 42 dictionaries = append(dictionaries, map[string]interface{}{
43 "dictName": "规模", 43 "dictName": "规模",
44 "dictItems": []dictItem{ 44 "dictItems": []dictItem{
45 - {"50~100人", "50~100人"},  
46 - {"100~500人", "100~500人"},  
47 - {"500人以上", "500人以上"}, 45 + {"1", "0~100人"},
  46 + {"2", "101~200人"},
  47 + {"3", "201~500人"},
  48 + {"4", "501~1000人"},
  49 + {"5", "1000人以上"},
48 }, 50 },
49 }) 51 })
50 - case "industry": 52 + case "XTZD-002":
51 dictionaries = append(dictionaries, map[string]interface{}{ 53 dictionaries = append(dictionaries, map[string]interface{}{
52 "dictName": "产业类型", 54 "dictName": "产业类型",
53 "dictItems": []dictItem{ 55 "dictItems": []dictItem{
54 - {"食品行业", "食品行业"},  
55 - {"金融行业", "金融行业"},  
56 - {"保险行业", "保险行业"},  
57 - {"计算机行业", "计算机行业"}, 56 + {"1", "食品行业"},
  57 + {"2", "电子行业"},
  58 + {"3", "纺织业"},
58 }, 59 },
59 }) 60 })
60 } 61 }