Files
EdgeAPI/internal/db/models/node_login_model.go

29 lines
777 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package models
import "github.com/iwind/TeaGo/dbs"
// NodeLogin 节点登录信息
type NodeLogin struct {
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"` // 状态
}
type NodeLoginOperator struct {
Id interface{} // ID
NodeId interface{} // 节点ID
Role interface{} // 角色
Name interface{} // 名称
Type interface{} // 类型ssh,agent
Params interface{} // 配置参数
State interface{} // 状态
}
func NewNodeLoginOperator() *NodeLoginOperator {
return &NodeLoginOperator{}
}