[域名服务]实现基本的线路配置

This commit is contained in:
刘祥超
2021-05-30 16:31:43 +08:00
parent 9d7f1a2702
commit 2a3fbd080e
7 changed files with 274 additions and 18 deletions

View File

@@ -3,23 +3,25 @@ package nameservers
// NSRoute DNS线路
type NSRoute struct {
Id uint32 `field:"id"` // ID
IsOn uint8 `field:"isOn"` // 是否启用
ClusterId uint32 `field:"clusterId"` // 集群ID
DomainId uint32 `field:"domainId"` // 域名ID
UserId uint32 `field:"userId"` // 用户ID
Name string `field:"name"` // 名称
Conds string `field:"conds"` // 条件定义
IsOn uint8 `field:"isOn"` // 是否启用
Ranges string `field:"ranges"` // 范围
Order uint32 `field:"order"` // 排序
State uint8 `field:"state"` // 状态
}
type NSRouteOperator struct {
Id interface{} // ID
IsOn interface{} // 是否启用
ClusterId interface{} // 集群ID
DomainId interface{} // 域名ID
UserId interface{} // 用户ID
Name interface{} // 名称
Conds interface{} // 条件定义
IsOn interface{} // 是否启用
Ranges interface{} // 范围
Order interface{} // 排序
State interface{} // 状态
}