shao 2 dagar sedan
förälder
incheckning
4ad400d48d
3 ändrade filer med 12 tillägg och 11 borttagningar
  1. 6 6
      common/enum.go
  2. 5 4
      config/config.toml.template
  3. 1 1
      service/config.go

+ 6 - 6
common/enum.go

@@ -71,16 +71,16 @@ func AllSources() []Source {
 type Product string
 
 const (
-	PRODUCT_DROC Product = "DROC"
-	PRODUCT_VET  Product = "VETDROC"
+	PRODUCT_DROS Product = "DROS"
+	PRODUCT_VET  Product = "VETDROS"
 )
 
 func (p Product) ToString() string {
 	switch p {
-	case PRODUCT_DROC:
-		return "DROC"
+	case PRODUCT_DROS:
+		return "DROS"
 	case PRODUCT_VET:
-		return "VETDROC"
+		return "VETDROS"
 	default:
 		return ""
 	}
@@ -91,5 +91,5 @@ func ValidProduct(product Product) bool {
 }
 
 func AllProducts() []Product {
-	return []Product{PRODUCT_DROC, PRODUCT_VET}
+	return []Product{PRODUCT_DROS, PRODUCT_VET}
 }

+ 5 - 4
config/config.toml.template

@@ -7,6 +7,7 @@ auth = "0.0.0.0:6001"
 resource = "localhost:6102"
 study = "localhost:6103"
 protocol = "localhost:6104"
+dcmtk = "localhost:6199"
 
 [logger]
 logDir = "./logs/" # 日志存储目录
@@ -37,7 +38,7 @@ locales = [
 ]
 # 支持的语言,可选项:"en","zh"
 languages = ["en", "zh"]
-# 支持的产品,可选项:"droc","vetdroc"
-product = "vetdroc"
-# 支持的访问源,可选项:"gui","browser","android"
-sources = ["gui", "browser", "android"]
+# 支持的产品,可选项:"DROS","VETDROS"
+product = "DROS"
+# 支持的访问源,可选项:"Electron","Browser","Android"
+sources = ["Electron", "Browser", "Android"]

+ 1 - 1
service/config.go

@@ -60,7 +60,7 @@ func (s *ConfigServer) ConfigOptionList(ctx context.Context, in *pb.ConfigOption
 			res.ConfigOption = append(res.ConfigOption, &pb.ConfigOption{Flag: "MWL_Modality", Text: "RF", Value: "RF", Order: 1, IsEnabled: true})
 			res.ConfigOption = append(res.ConfigOption, &pb.ConfigOption{Flag: "MWL_Modality", Text: "DX", Value: "DX", Order: 2, IsEnabled: true})
 			res.ConfigOption = append(res.ConfigOption, &pb.ConfigOption{Flag: "MWL_Modality", Text: "XA", Value: "XA", Order: 3, IsEnabled: true})
-		} else if product == common.PRODUCT_DROC {
+		} else if product == common.PRODUCT_DROS {
 			res.ConfigOption = append(res.ConfigOption, &pb.ConfigOption{Flag: "MWL_Modality", Text: "DX", Value: "DX", Order: 1, IsEnabled: true})
 			res.ConfigOption = append(res.ConfigOption, &pb.ConfigOption{Flag: "MWL_Modality", Text: "CR", Value: "CR", Order: 2, IsEnabled: true})
 		}