mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	增加多个配置项
This commit is contained in:
		@@ -6,6 +6,7 @@ type UserModule = string
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	UserModuleCDN      UserModule = "cdn"
 | 
			
		||||
	UserModuleAntiDDoS UserModule = "antiDDoS"
 | 
			
		||||
	UserModuleNS       UserModule = "ns"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user