2020-07-22 22:17:53 +08:00
|
|
|
package models
|
|
|
|
|
|
|
|
|
|
// 节点集群
|
|
|
|
|
type NodeCluster struct {
|
2020-09-06 16:19:54 +08:00
|
|
|
Id uint32 `field:"id"` // ID
|
2020-09-15 14:44:11 +08:00
|
|
|
AdminId uint32 `field:"adminId"` // 管理员ID
|
|
|
|
|
UserId uint32 `field:"userId"` // 用户ID
|
2020-09-06 16:19:54 +08:00
|
|
|
Name string `field:"name"` // 名称
|
|
|
|
|
UseAllAPINodes uint8 `field:"useAllAPINodes"` // 是否使用所有API节点
|
|
|
|
|
ApiNodes string `field:"apiNodes"` // 使用的API节点
|
2020-09-15 14:44:11 +08:00
|
|
|
InstallDir string `field:"installDir"` // 安装目录
|
2020-09-06 16:19:54 +08:00
|
|
|
Order uint32 `field:"order"` // 排序
|
2020-09-23 10:12:57 +08:00
|
|
|
CreatedAt uint64 `field:"createdAt"` // 创建时间
|
2020-09-15 14:44:11 +08:00
|
|
|
GrantId uint32 `field:"grantId"` // 默认认证方式
|
2020-09-06 16:19:54 +08:00
|
|
|
State uint8 `field:"state"` // 状态
|
2020-10-17 11:14:53 +08:00
|
|
|
AutoRegister uint8 `field:"autoRegister"` // 是否开启自动注册
|
|
|
|
|
UniqueId string `field:"uniqueId"` // 唯一ID
|
|
|
|
|
Secret string `field:"secret"` // 密钥
|
2020-07-22 22:17:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type NodeClusterOperator struct {
|
2020-09-06 16:19:54 +08:00
|
|
|
Id interface{} // ID
|
2020-09-15 14:44:11 +08:00
|
|
|
AdminId interface{} // 管理员ID
|
|
|
|
|
UserId interface{} // 用户ID
|
2020-09-06 16:19:54 +08:00
|
|
|
Name interface{} // 名称
|
|
|
|
|
UseAllAPINodes interface{} // 是否使用所有API节点
|
|
|
|
|
ApiNodes interface{} // 使用的API节点
|
2020-09-15 14:44:11 +08:00
|
|
|
InstallDir interface{} // 安装目录
|
2020-09-06 16:19:54 +08:00
|
|
|
Order interface{} // 排序
|
|
|
|
|
CreatedAt interface{} // 创建时间
|
2020-09-15 14:44:11 +08:00
|
|
|
GrantId interface{} // 默认认证方式
|
2020-09-06 16:19:54 +08:00
|
|
|
State interface{} // 状态
|
2020-10-17 11:14:53 +08:00
|
|
|
AutoRegister interface{} // 是否开启自动注册
|
|
|
|
|
UniqueId interface{} // 唯一ID
|
|
|
|
|
Secret interface{} // 密钥
|
2020-07-22 22:17:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewNodeClusterOperator() *NodeClusterOperator {
|
|
|
|
|
return &NodeClusterOperator{}
|
|
|
|
|
}
|