mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2026-04-25 07:25:18 +08:00
增加DNS套餐相关API
This commit is contained in:
@@ -4,10 +4,28 @@ package dnsconfigs
|
||||
|
||||
func DefaultNSUserConfig() *NSUserConfig {
|
||||
return &NSUserConfig{
|
||||
DefaultClusterId: 0,
|
||||
DefaultClusterId: 0,
|
||||
DefaultPlanConfig: DefaultNSUserPlanConfig(),
|
||||
}
|
||||
}
|
||||
|
||||
func DefaultNSUserPlanConfig() *NSPlanConfig {
|
||||
return &NSPlanConfig{
|
||||
SupportCountryRoutes: true,
|
||||
SupportChinaProvinceRoutes: true,
|
||||
SupportISPRoutes: true,
|
||||
MaxCustomRoutes: 0,
|
||||
MaxLoadBalanceRecordsPerRecord: 100,
|
||||
MinTTL: 60,
|
||||
MaxDomains: 100,
|
||||
MaxRecordsPerDomain: 1000,
|
||||
SupportRecordStats: true,
|
||||
SupportDomainAlias: false,
|
||||
SupportAPI: false,
|
||||
}
|
||||
}
|
||||
|
||||
type NSUserConfig struct {
|
||||
DefaultClusterId int64 `json:"defaultClusterId"` // 默认部署到的集群
|
||||
DefaultClusterId int64 `json:"defaultClusterId"` // 默认部署到的集群
|
||||
DefaultPlanConfig *NSPlanConfig `json:"defaultPlanConfig"` // 默认套餐设置
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user