mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	feat: 使用标签替代项目
This commit is contained in:
		
							
								
								
									
										25
									
								
								server/internal/machine/domain/entity/query.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								server/internal/machine/domain/entity/query.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
package entity
 | 
			
		||||
 | 
			
		||||
import "mayfly-go/pkg/model"
 | 
			
		||||
 | 
			
		||||
type MachineQuery struct {
 | 
			
		||||
	model.Model
 | 
			
		||||
	ProjectId          uint64 `json:"projectId"`
 | 
			
		||||
	ProjectName        string `json:"projectName"`
 | 
			
		||||
	Name               string `json:"name"`
 | 
			
		||||
	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:停用
 | 
			
		||||
	Remark             string `json:"remark"`             // 备注
 | 
			
		||||
	EnableSshTunnel    int8   `json:"enableSshTunnel"`    // 是否启用ssh隧道
 | 
			
		||||
	SshTunnelMachineId uint64 `json:"sshTunnelMachineId"` // ssh隧道机器id
 | 
			
		||||
	EnableRecorder     int8   `json:"enableRecorder"`     // 是否启用终端回放记录
 | 
			
		||||
 | 
			
		||||
	ProjectIds  []uint64
 | 
			
		||||
	TagId       uint64
 | 
			
		||||
	TagPathLike string
 | 
			
		||||
	TagIds      []uint64
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user