mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	feat: 数据库、redis、mongo支持ssh隧道等
This commit is contained in:
		@@ -9,8 +9,9 @@ type Machine struct {
 | 
			
		||||
	ProjectId   uint64 `json:"projectId"`
 | 
			
		||||
	ProjectName string `json:"projectName"`
 | 
			
		||||
	Name        string `json:"name"`
 | 
			
		||||
	Ip          string `json:"ip"`       // IP地址
 | 
			
		||||
	Username    string `json:"username"` // 用户名
 | 
			
		||||
	Ip          string `json:"ip"`         // IP地址
 | 
			
		||||
	Username    string `json:"username"`   // 用户名
 | 
			
		||||
	AuthMethod  int8   `json:"authMethod"` // 授权认证方式
 | 
			
		||||
	Password    string `json:"-"`
 | 
			
		||||
	Port        int    `json:"port"`   // 端口号
 | 
			
		||||
	Status      int8   `json:"status"` // 状态 1:启用;2:停用
 | 
			
		||||
@@ -18,6 +19,8 @@ type Machine struct {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
const (
 | 
			
		||||
	MachineStatusEnable  int8 = 1  // 启用状态
 | 
			
		||||
	MachineStatusDisable int8 = -1 // 禁用状态
 | 
			
		||||
	MachineStatusEnable        int8 = 1  // 启用状态
 | 
			
		||||
	MachineStatusDisable       int8 = -1 // 禁用状态
 | 
			
		||||
	MachineAuthMethodPassword  int8 = 1  // 密码登录
 | 
			
		||||
	MachineAuthMethodPublicKey int8 = 2  // 公钥免密登录
 | 
			
		||||
)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user