mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-07 23:30:25 +08:00
增加多个配置项
This commit is contained in:
@@ -6,6 +6,7 @@ type UserModule = string
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
UserModuleCDN UserModule = "cdn"
|
UserModuleCDN UserModule = "cdn"
|
||||||
|
UserModuleAntiDDoS UserModule = "antiDDoS"
|
||||||
UserModuleNS UserModule = "ns"
|
UserModuleNS UserModule = "ns"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -36,8 +36,11 @@ type UserRegisterConfig struct {
|
|||||||
ClusterId int64 `yaml:"clusterId" json:"clusterId"` // 用户创建服务集群
|
ClusterId int64 `yaml:"clusterId" json:"clusterId"` // 用户创建服务集群
|
||||||
Features []string `yaml:"features" json:"features"` // 默认启用的功能
|
Features []string `yaml:"features" json:"features"` // 默认启用的功能
|
||||||
|
|
||||||
// 开通DNS
|
// 开通DNS服务
|
||||||
NSIsOn bool `json:"nsIsOn"` // 是否开启智能DNS服务
|
NSIsOn bool `json:"nsIsOn"` // 是否开启智能DNS服务
|
||||||
|
|
||||||
|
// 开通高防服务
|
||||||
|
ADIsOn bool `json:"adIsOn"` // 是否开启高防服务
|
||||||
}
|
}
|
||||||
|
|
||||||
func DefaultUserRegisterConfig() *UserRegisterConfig {
|
func DefaultUserRegisterConfig() *UserRegisterConfig {
|
||||||
|
|||||||
Reference in New Issue
Block a user