瀏覽代碼

删除其他配置

WH01243 9 月之前
父節點
當前提交
3eccec43a4
共有 2 個文件被更改,包括 3 次插入7 次删除
  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)
 	Middleground = middleground.NewMiddleground(C.Hosts).
-		RegUserCenter(C.UserCenterKey).
-		RegPowerCheckCenter(C.PowerCheckCenterKey).
-		RegEntManageApplication(C.EntManageApplication)
+		RegPowerCheckCenter(C.PowerCheckCenterKey)
 }
 func ConnectClickhouse(cHouseConfig *config.CHouseConfig) error {
 	var (

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

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