zhangqian
2023-08-14 676ef551324d415ed5280166407c686481c6f51f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
    }
)