2021-03-24 17:18:39 +08:00
|
|
|
package form
|
|
|
|
|
|
|
|
|
|
type MockData struct {
|
2021-04-16 15:10:07 +08:00
|
|
|
Method string `json:"method" binding:"required"`
|
2021-03-24 17:18:39 +08:00
|
|
|
Enable uint `json:"enable"`
|
|
|
|
|
Description string `valid:"Required" json:"description"`
|
|
|
|
|
Data string `valid:"Required" json:"data"`
|
|
|
|
|
EffectiveUser []string `json:"effectiveUser"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Machine struct {
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Ip string `json:"ip"` // IP地址
|
|
|
|
|
Username string `json:"username"` // 用户名
|
|
|
|
|
Password string `json:"-"`
|
|
|
|
|
Port int `json:"port"` // 端口号
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MachineService struct {
|
|
|
|
|
Name string `json:"name"`
|
|
|
|
|
Ip string `json:"ip"` // IP地址
|
|
|
|
|
Service string `json:"service"` // 服务命令
|
|
|
|
|
}
|