package request
|
|
type (
|
AddDevice struct {
|
Device Device
|
}
|
|
Device struct {
|
Name string `json:"name" example:"设备名称"`
|
Ip string `json:"ip" example:"设备IP"`
|
Account string `json:"account" example:"root账号"`
|
Password string `json:"password" example:"root密码"`
|
Port string `json:"port" example:"端口号"`
|
}
|
|
InstallRancher struct {
|
DeviceId int `json:"deviceId"`
|
}
|
|
GetDeviceList struct {
|
Keyword string `json:"keyword"` // 模糊查询字段
|
Status string `json:"status" example:"设备状态 1:全部; 2: 在线; 3: 离线"`
|
}
|
|
DeleteDevice struct {
|
DeviceId int `json:"deviceId"`
|
}
|
|
UpdateDevice struct {
|
Device Device
|
}
|
)
|