mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-27 07:26:36 +08:00
增加一些表设计
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package models
|
||||
|
||||
//
|
||||
// 节点授权
|
||||
type NodeGrant struct {
|
||||
Id uint32 `field:"id"` // ID
|
||||
Name string `field:"name"` // 名称
|
||||
@@ -12,6 +12,7 @@ type NodeGrant struct {
|
||||
Description string `field:"description"` // 备注
|
||||
NodeId uint32 `field:"nodeId"` // 专有节点
|
||||
State uint8 `field:"state"` // 状态
|
||||
CreatedAt uint64 `field:"createdAt"` // 创建时间
|
||||
}
|
||||
|
||||
type NodeGrantOperator struct {
|
||||
@@ -25,6 +26,7 @@ type NodeGrantOperator struct {
|
||||
Description interface{} // 备注
|
||||
NodeId interface{} // 专有节点
|
||||
State interface{} // 状态
|
||||
CreatedAt interface{} // 创建时间
|
||||
}
|
||||
|
||||
func NewNodeGrantOperator() *NodeGrantOperator {
|
||||
|
||||
Reference in New Issue
Block a user