mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2026-01-02 12:06:34 +08:00
阶段性提交
This commit is contained in:
24
internal/db/models/node_login_model.go
Normal file
24
internal/db/models/node_login_model.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package models
|
||||
|
||||
//
|
||||
type NodeLogin struct {
|
||||
Id uint32 `field:"id"` // ID
|
||||
NodeId uint32 `field:"nodeId"` // 节点ID
|
||||
Name string `field:"name"` // 名称
|
||||
Type string `field:"type"` // 类型:ssh,agent
|
||||
Params string `field:"params"` // 配置参数
|
||||
State uint8 `field:"state"` // 状态
|
||||
}
|
||||
|
||||
type NodeLoginOperator struct {
|
||||
Id interface{} // ID
|
||||
NodeId interface{} // 节点ID
|
||||
Name interface{} // 名称
|
||||
Type interface{} // 类型:ssh,agent
|
||||
Params interface{} // 配置参数
|
||||
State interface{} // 状态
|
||||
}
|
||||
|
||||
func NewNodeLoginOperator() *NodeLoginOperator {
|
||||
return &NodeLoginOperator{}
|
||||
}
|
||||
Reference in New Issue
Block a user