2021-05-08 18:00:33 +08:00
|
|
|
|
package entity
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
2022-06-02 17:41:11 +08:00
|
|
|
|
"mayfly-go/pkg/model"
|
2021-05-08 18:00:33 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
type Machine struct {
|
|
|
|
|
|
model.Model
|
2021-12-11 11:19:47 +08:00
|
|
|
|
ProjectId uint64 `json:"projectId"`
|
|
|
|
|
|
ProjectName string `json:"projectName"`
|
|
|
|
|
|
Name string `json:"name"`
|
2022-04-27 10:59:02 +08:00
|
|
|
|
Ip string `json:"ip"` // IP地址
|
|
|
|
|
|
Username string `json:"username"` // 用户名
|
|
|
|
|
|
Password string `json:"-"`
|
|
|
|
|
|
Port int `json:"port"` // 端口号
|
|
|
|
|
|
Status int8 `json:"status"` // 状态 1:启用;2:停用
|
2022-05-12 10:34:16 +08:00
|
|
|
|
Remark string `json:"remark"` // 备注
|
2021-05-08 18:00:33 +08:00
|
|
|
|
}
|
2022-04-27 10:59:02 +08:00
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
|
MachineStatusEnable int8 = 1 // 启用状态
|
|
|
|
|
|
MachineStatusDisable int8 = -1 // 禁用状态
|
|
|
|
|
|
)
|