增加一些表设计

This commit is contained in:
GoEdgeLab
2020-09-23 10:12:57 +08:00
parent 9c51ec5885
commit dd4e696ed9
50 changed files with 529 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
package models
//
// API节点
type APINode struct {
Id uint32 `field:"id"` // ID
IsOn uint8 `field:"isOn"` // 是否启用
@@ -9,10 +9,13 @@ type APINode struct {
Secret string `field:"secret"` // 密钥
Name string `field:"name"` // 名称
Description string `field:"description"` // 描述
Host string `field:"host"` // 地址
Host string `field:"host"` // 主机
Port uint32 `field:"port"` // 端口
Order uint32 `field:"order"` // 排序
State uint8 `field:"state"` // 状态
CreatedAt uint64 `field:"createdAt"` // 创建时间
AdminId uint32 `field:"adminId"` // 管理员ID
Weight uint32 `field:"weight"` // 权重
}
type APINodeOperator struct {
@@ -23,10 +26,13 @@ type APINodeOperator struct {
Secret interface{} // 密钥
Name interface{} // 名称
Description interface{} // 描述
Host interface{} // 地址
Host interface{} // 主机
Port interface{} // 端口
Order interface{} // 排序
State interface{} // 状态
CreatedAt interface{} // 创建时间
AdminId interface{} // 管理员ID
Weight interface{} // 权重
}
func NewAPINodeOperator() *APINodeOperator {