mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	增加多个配置项
This commit is contained in:
		@@ -5,8 +5,9 @@ package userconfigs
 | 
				
			|||||||
type UserModule = string
 | 
					type UserModule = string
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const (
 | 
					const (
 | 
				
			||||||
	UserModuleCDN UserModule = "cdn"
 | 
						UserModuleCDN      UserModule = "cdn"
 | 
				
			||||||
	UserModuleNS  UserModule = "ns"
 | 
						UserModuleAntiDDoS UserModule = "antiDDoS"
 | 
				
			||||||
 | 
						UserModuleNS       UserModule = "ns"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
var DefaultUserModules = []UserModule{UserModuleCDN}
 | 
					var DefaultUserModules = []UserModule{UserModuleCDN}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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