mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-25 06:26:35 +08:00
DNS服务支持密钥管理
This commit is contained in:
30
internal/db/models/nameservers/ns_key_model.go
Normal file
30
internal/db/models/nameservers/ns_key_model.go
Normal file
@@ -0,0 +1,30 @@
|
||||
package nameservers
|
||||
|
||||
// NSKey 密钥管理
|
||||
type NSKey struct {
|
||||
Id uint64 `field:"id"` // ID
|
||||
IsOn uint8 `field:"isOn"` // 状态
|
||||
Name string `field:"name"` // 名称
|
||||
DomainId uint64 `field:"domainId"` // 域名ID
|
||||
ZoneId uint64 `field:"zoneId"` // 子域ID
|
||||
Algo string `field:"algo"` // 算法
|
||||
Secret string `field:"secret"` // 密码
|
||||
SecretType string `field:"secretType"` // 密码类型
|
||||
State uint8 `field:"state"` // 状态
|
||||
}
|
||||
|
||||
type NSKeyOperator struct {
|
||||
Id interface{} // ID
|
||||
IsOn interface{} // 状态
|
||||
Name interface{} // 名称
|
||||
DomainId interface{} // 域名ID
|
||||
ZoneId interface{} // 子域ID
|
||||
Algo interface{} // 算法
|
||||
Secret interface{} // 密码
|
||||
SecretType interface{} // 密码类型
|
||||
State interface{} // 状态
|
||||
}
|
||||
|
||||
func NewNSKeyOperator() *NSKeyOperator {
|
||||
return &NSKeyOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user