mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-11-14 16:30:26 +08:00
增加一些表设计
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user