Browse Source

config: 更新枚举

ping 7 months ago
parent
commit
702b504382
1 changed files with 5 additions and 2 deletions
  1. 5 2
      module/backend/config_data.go

+ 5 - 2
module/backend/config_data.go

@@ -17,7 +17,7 @@ var DrugCategoryMap = map[pasturePb.DrugCategory_Kind]string{
 	pasturePb.DrugCategory_Antibiotics:    "抗生素类",
 	pasturePb.DrugCategory_Antivirals:     "抗病毒类",
 	pasturePb.DrugCategory_Antifungals:    "抗真菌类",
-	pasturePb.DrugCategory_Antiparasitics: "抗寄生虫类",
+	pasturePb.DrugCategory_Antiparasitics: "虫类",
 	pasturePb.DrugCategory_Analgesics:     "镇痛类",
 	pasturePb.DrugCategory_Antipyretic:    "退烧类",
 	pasturePb.DrugCategory_Vitamin:        "维生素类",
@@ -28,6 +28,7 @@ var DrugCategoryMap = map[pasturePb.DrugCategory_Kind]string{
 	pasturePb.DrugCategory_Disinfect:      "消毒类",
 	pasturePb.DrugCategory_Chinese_Herbal: "中药合剂",
 	pasturePb.DrugCategory_Tocolytic:      "保胎类",
+	pasturePb.DrugCategory_Immunity:       "免疫类",
 }
 var UnitMap = map[pasturePb.Unit_Kind]string{
 	pasturePb.Unit_Pieces:  "个",
@@ -38,6 +39,8 @@ var UnitMap = map[pasturePb.Unit_Kind]string{
 	pasturePb.Unit_Branch:  "支",
 	pasturePb.Unit_Barrel:  "桶",
 	pasturePb.Unit_Pot:     "罐",
+	pasturePb.Unit_ML:      "毫升",
+	pasturePb.Unit_L:       "升",
 }
 var DrugUsageMap = map[pasturePb.DrugUsage_Kind]string{
 	pasturePb.DrugUsage_Oral_Medications:       "口服",
@@ -451,7 +454,7 @@ func (s *StoreEntry) DrugCategoryEnumList() []*pasturePb.ConfigOptionsList {
 		Disabled: true,
 	}, &pasturePb.ConfigOptionsList{
 		Value:    int32(pasturePb.DrugCategory_Antiparasitics),
-		Label:    "抗寄生虫类",
+		Label:    "虫类",
 		Disabled: true,
 	}, &pasturePb.ConfigOptionsList{
 		Value:    int32(pasturePb.DrugCategory_Analgesics),