增加多个配置项

This commit is contained in:
GoEdgeLab
2023-02-23 21:28:42 +08:00
parent 988004b3c5
commit e84fc649f8
2 changed files with 7 additions and 3 deletions

View File

@@ -5,8 +5,9 @@ package userconfigs
type UserModule = string
const (
UserModuleCDN UserModule = "cdn"
UserModuleNS UserModule = "ns"
UserModuleCDN UserModule = "cdn"
UserModuleAntiDDoS UserModule = "antiDDoS"
UserModuleNS UserModule = "ns"
)
var DefaultUserModules = []UserModule{UserModuleCDN}

View File

@@ -36,8 +36,11 @@ type UserRegisterConfig struct {
ClusterId int64 `yaml:"clusterId" json:"clusterId"` // 用户创建服务集群
Features []string `yaml:"features" json:"features"` // 默认启用的功能
// 开通DNS
// 开通DNS服务
NSIsOn bool `json:"nsIsOn"` // 是否开启智能DNS服务
// 开通高防服务
ADIsOn bool `json:"adIsOn"` // 是否开启高防服务
}
func DefaultUserRegisterConfig() *UserRegisterConfig {