mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-05 09:30:24 +08:00
37 lines
1.1 KiB
Go
37 lines
1.1 KiB
Go
package dns
|
|
|
|
// DNSTask DNS更新任务
|
|
type DNSTask struct {
|
|
Id uint64 `field:"id"` // ID
|
|
ClusterId uint32 `field:"clusterId"` // 集群ID
|
|
ServerId uint32 `field:"serverId"` // 服务ID
|
|
NodeId uint32 `field:"nodeId"` // 节点ID
|
|
DomainId uint32 `field:"domainId"` // 域名ID
|
|
RecordName string `field:"recordName"` // 记录名
|
|
Type string `field:"type"` // 任务类型
|
|
UpdatedAt uint64 `field:"updatedAt"` // 更新时间
|
|
IsDone bool `field:"isDone"` // 是否已完成
|
|
IsOk bool `field:"isOk"` // 是否成功
|
|
Error string `field:"error"` // 错误信息
|
|
Version uint64 `field:"version"` // 版本
|
|
}
|
|
|
|
type DNSTaskOperator struct {
|
|
Id any // ID
|
|
ClusterId any // 集群ID
|
|
ServerId any // 服务ID
|
|
NodeId any // 节点ID
|
|
DomainId any // 域名ID
|
|
RecordName any // 记录名
|
|
Type any // 任务类型
|
|
UpdatedAt any // 更新时间
|
|
IsDone any // 是否已完成
|
|
IsOk any // 是否成功
|
|
Error any // 错误信息
|
|
Version any // 版本
|
|
}
|
|
|
|
func NewDNSTaskOperator() *DNSTaskOperator {
|
|
return &DNSTaskOperator{}
|
|
}
|