mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 00:10:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			602 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			602 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package entity
 | 
						||
 | 
						||
import (
 | 
						||
	"mayfly-go/pkg/model"
 | 
						||
)
 | 
						||
 | 
						||
type Machine struct {
 | 
						||
	model.Model
 | 
						||
	ProjectId   uint64 `json:"projectId"`
 | 
						||
	ProjectName string `json:"projectName"`
 | 
						||
	Name        string `json:"name"`
 | 
						||
	Ip          string `json:"ip"`       // IP地址
 | 
						||
	Username    string `json:"username"` // 用户名
 | 
						||
	Password    string `json:"-"`
 | 
						||
	Port        int    `json:"port"`   // 端口号
 | 
						||
	Status      int8   `json:"status"` // 状态 1:启用;2:停用
 | 
						||
	Remark      string `json:"remark"` // 备注
 | 
						||
}
 | 
						||
 | 
						||
const (
 | 
						||
	MachineStatusEnable  int8 = 1  // 启用状态
 | 
						||
	MachineStatusDisable int8 = -1 // 禁用状态
 | 
						||
)
 |