商业版增加UAM功能

This commit is contained in:
刘祥超
2022-03-29 21:24:36 +08:00
parent 01ca35f6a9
commit 04ab37ce23
4 changed files with 668 additions and 333 deletions

View File

@@ -52,6 +52,9 @@ type ServerConfig struct {
// 分组
Group *ServerGroupConfig `yaml:"group" json:"group"`
// UAM
UAM *UAMConfig `yaml:"uam" json:"uam"`
isOk bool
planId int64
@@ -243,6 +246,14 @@ func (this *ServerConfig) Init() (results []error) {
}
}
// UAM
if this.UAM != nil {
err := this.UAM.Init()
if err != nil {
results = append(results, err)
}
}
this.isOk = true
return nil

View File

@@ -0,0 +1,11 @@
// Copyright 2022 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
package serverconfigs
type UAMConfig struct {
IsOn bool `yaml:"isOn" json:"isOn"`
}
func (this *UAMConfig) Init() error {
return nil
}