2021-04-13 21:23:26 +08:00
|
|
|
package authority
|
2021-04-13 20:01:21 +08:00
|
|
|
|
2022-03-21 21:39:36 +08:00
|
|
|
import "github.com/iwind/TeaGo/dbs"
|
|
|
|
|
|
2021-04-13 20:01:21 +08:00
|
|
|
// AuthorityKey 企业版认证信息
|
|
|
|
|
type AuthorityKey struct {
|
2022-03-21 21:39:36 +08:00
|
|
|
Id uint32 `field:"id"` // ID
|
|
|
|
|
Value string `field:"value"` // Key值
|
|
|
|
|
DayFrom string `field:"dayFrom"` // 开始日期
|
|
|
|
|
DayTo string `field:"dayTo"` // 结束日期
|
|
|
|
|
Hostname string `field:"hostname"` // Hostname
|
|
|
|
|
MacAddresses dbs.JSON `field:"macAddresses"` // MAC地址
|
|
|
|
|
UpdatedAt uint64 `field:"updatedAt"` // 创建/修改时间
|
|
|
|
|
Company string `field:"company"` // 公司组织
|
2021-04-13 20:01:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type AuthorityKeyOperator struct {
|
|
|
|
|
Id interface{} // ID
|
|
|
|
|
Value interface{} // Key值
|
|
|
|
|
DayFrom interface{} // 开始日期
|
|
|
|
|
DayTo interface{} // 结束日期
|
|
|
|
|
Hostname interface{} // Hostname
|
|
|
|
|
MacAddresses interface{} // MAC地址
|
|
|
|
|
UpdatedAt interface{} // 创建/修改时间
|
2021-04-14 20:02:21 +08:00
|
|
|
Company interface{} // 公司组织
|
2021-04-13 20:01:21 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewAuthorityKeyOperator() *AuthorityKeyOperator {
|
|
|
|
|
return &AuthorityKeyOperator{}
|
|
|
|
|
}
|