Răsfoiți Sursa

删除其他配置

WH01243 9 luni în urmă
părinte
comite
3eccec43a4
2 a modificat fișierele cu 3 adăugiri și 7 ștergeri
  1. 1 3
      api/common/initconfig.go
  2. 2 4
      api/internal/config/config.go

+ 1 - 3
api/common/initconfig.go

@@ -123,9 +123,7 @@ func InitConf() {
 
 
 	ConnectClickhouse(DB.Clickhouse)
 	ConnectClickhouse(DB.Clickhouse)
 	Middleground = middleground.NewMiddleground(C.Hosts).
 	Middleground = middleground.NewMiddleground(C.Hosts).
-		RegUserCenter(C.UserCenterKey).
-		RegPowerCheckCenter(C.PowerCheckCenterKey).
-		RegEntManageApplication(C.EntManageApplication)
+		RegPowerCheckCenter(C.PowerCheckCenterKey)
 }
 }
 func ConnectClickhouse(cHouseConfig *config.CHouseConfig) error {
 func ConnectClickhouse(cHouseConfig *config.CHouseConfig) error {
 	var (
 	var (

+ 2 - 4
api/internal/config/config.go

@@ -11,10 +11,8 @@ type Config struct {
 		ServerCode string
 		ServerCode string
 		Etcd       []string
 		Etcd       []string
 	}
 	}
-	UserCenterKey        string
-	PowerCheckCenterKey  string
-	EntManageApplication string
-	Hosts                []string
+	PowerCheckCenterKey string
+	Hosts               []string
 }
 }
 
 
 type Db struct {
 type Db struct {