mirror of
				https://github.com/TeaOSLab/EdgeAPI.git
				synced 2025-11-04 16:00:24 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			726 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			726 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package models
 | 
						||
 | 
						||
// 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 string `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{}
 | 
						||
}
 |