2021-05-25 15:49:13 +08:00
|
|
|
|
package nameservers
|
|
|
|
|
|
|
2022-03-21 21:39:36 +08:00
|
|
|
|
import "github.com/iwind/TeaGo/dbs"
|
|
|
|
|
|
|
2021-05-25 15:49:13 +08:00
|
|
|
|
// NSDomain DNS域名
|
|
|
|
|
|
type NSDomain struct {
|
2022-08-06 20:28:32 +08:00
|
|
|
|
Id uint64 `field:"id"` // ID
|
2022-03-21 21:39:36 +08:00
|
|
|
|
ClusterId uint32 `field:"clusterId"` // 集群ID
|
|
|
|
|
|
UserId uint32 `field:"userId"` // 用户ID
|
2022-03-22 21:45:07 +08:00
|
|
|
|
IsOn bool `field:"isOn"` // 是否启用
|
2022-03-21 21:39:36 +08:00
|
|
|
|
Name string `field:"name"` // 域名
|
2022-08-06 20:28:32 +08:00
|
|
|
|
GroupIds dbs.JSON `field:"groupIds"` // 分组ID
|
|
|
|
|
|
Tsig dbs.JSON `field:"tsig"` // TSIG配置
|
2022-03-21 21:39:36 +08:00
|
|
|
|
CreatedAt uint64 `field:"createdAt"` // 创建时间
|
2022-08-06 20:28:32 +08:00
|
|
|
|
Version uint64 `field:"version"` // 版本号
|
|
|
|
|
|
Status string `field:"status"` // 状态:none|verified
|
2022-03-21 21:39:36 +08:00
|
|
|
|
State uint8 `field:"state"` // 状态
|
2021-05-25 15:49:13 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type NSDomainOperator struct {
|
|
|
|
|
|
Id interface{} // ID
|
|
|
|
|
|
ClusterId interface{} // 集群ID
|
|
|
|
|
|
UserId interface{} // 用户ID
|
|
|
|
|
|
IsOn interface{} // 是否启用
|
|
|
|
|
|
Name interface{} // 域名
|
2022-08-06 20:28:32 +08:00
|
|
|
|
GroupIds interface{} // 分组ID
|
|
|
|
|
|
Tsig interface{} // TSIG配置
|
2021-05-25 15:49:13 +08:00
|
|
|
|
CreatedAt interface{} // 创建时间
|
2022-08-06 20:28:32 +08:00
|
|
|
|
Version interface{} // 版本号
|
|
|
|
|
|
Status interface{} // 状态:none|verified
|
2021-05-25 15:49:13 +08:00
|
|
|
|
State interface{} // 状态
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func NewNSDomainOperator() *NSDomainOperator {
|
|
|
|
|
|
return &NSDomainOperator{}
|
|
|
|
|
|
}
|