mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-04-21 11:45:27 +08:00
feat: 新增机器状态查看&机器状态等
This commit is contained in:
@@ -9,11 +9,14 @@ type Machine struct {
|
||||
ProjectId uint64 `json:"projectId"`
|
||||
ProjectName string `json:"projectName"`
|
||||
Name string `json:"name"`
|
||||
// IP地址
|
||||
Ip string `json:"ip"`
|
||||
// 用户名
|
||||
Username string `json:"username"`
|
||||
Password string `json:"-"`
|
||||
// 端口号
|
||||
Port int `json:"port"`
|
||||
Ip string `json:"ip"` // IP地址
|
||||
Username string `json:"username"` // 用户名
|
||||
Password string `json:"-"`
|
||||
Port int `json:"port"` // 端口号
|
||||
Status int8 `json:"status"` // 状态 1:启用;2:停用
|
||||
}
|
||||
|
||||
const (
|
||||
MachineStatusEnable int8 = 1 // 启用状态
|
||||
MachineStatusDisable int8 = -1 // 禁用状态
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user