2020-07-22 22:17:53 +08:00
|
|
|
|
package models
|
|
|
|
|
|
|
2022-03-21 21:39:36 +08:00
|
|
|
|
import "github.com/iwind/TeaGo/dbs"
|
|
|
|
|
|
|
2021-08-11 21:00:29 +08:00
|
|
|
|
// NodeLogin 节点登录信息
|
2020-07-22 22:17:53 +08:00
|
|
|
|
type NodeLogin struct {
|
2022-03-21 21:39:36 +08:00
|
|
|
|
Id uint32 `field:"id"` // ID
|
|
|
|
|
|
NodeId uint32 `field:"nodeId"` // 节点ID
|
|
|
|
|
|
Role string `field:"role"` // 角色
|
|
|
|
|
|
Name string `field:"name"` // 名称
|
|
|
|
|
|
Type string `field:"type"` // 类型:ssh,agent
|
|
|
|
|
|
Params dbs.JSON `field:"params"` // 配置参数
|
|
|
|
|
|
State uint8 `field:"state"` // 状态
|
2020-07-22 22:17:53 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type NodeLoginOperator struct {
|
|
|
|
|
|
Id interface{} // ID
|
|
|
|
|
|
NodeId interface{} // 节点ID
|
2021-08-11 21:00:29 +08:00
|
|
|
|
Role interface{} // 角色
|
2020-07-22 22:17:53 +08:00
|
|
|
|
Name interface{} // 名称
|
|
|
|
|
|
Type interface{} // 类型:ssh,agent
|
|
|
|
|
|
Params interface{} // 配置参数
|
|
|
|
|
|
State interface{} // 状态
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func NewNodeLoginOperator() *NodeLoginOperator {
|
|
|
|
|
|
return &NodeLoginOperator{}
|
|
|
|
|
|
}
|