2021-05-08 18:00:33 +08:00
|
|
|
package form
|
|
|
|
|
|
|
|
|
|
type MachineForm struct {
|
2021-12-11 11:19:47 +08:00
|
|
|
Id uint64 `json:"id"`
|
|
|
|
|
ProjectId uint64 `json:"projectId"`
|
|
|
|
|
ProjectName string `json:"projectName"`
|
|
|
|
|
Name string `json:"name" binding:"required"`
|
2021-05-08 18:00:33 +08:00
|
|
|
// IP地址
|
2021-07-28 18:03:19 +08:00
|
|
|
Ip string `json:"ip" binding:"required"`
|
2021-05-08 18:00:33 +08:00
|
|
|
// 用户名
|
2021-07-28 18:03:19 +08:00
|
|
|
Username string `json:"username" binding:"required"`
|
|
|
|
|
Password string `json:"password" binding:"required"`
|
2021-05-08 18:00:33 +08:00
|
|
|
// 端口号
|
2021-07-28 18:03:19 +08:00
|
|
|
Port int `json:"port" binding:"required"`
|
2021-05-08 18:00:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MachineRunForm struct {
|
2021-07-28 18:03:19 +08:00
|
|
|
MachineId int64 `binding:"required"`
|
|
|
|
|
Cmd string `binding:"required"`
|
2021-05-08 18:00:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MachineFileForm struct {
|
|
|
|
|
Id uint64
|
2021-07-28 18:03:19 +08:00
|
|
|
Name string `binding:"required"`
|
|
|
|
|
MachineId uint64 `binding:"required"`
|
|
|
|
|
Type int `binding:"required"`
|
|
|
|
|
Path string `binding:"required"`
|
2021-05-08 18:00:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MachineScriptForm struct {
|
|
|
|
|
Id uint64
|
2021-07-28 18:03:19 +08:00
|
|
|
Name string `binding:"required"`
|
|
|
|
|
MachineId uint64 `binding:"required"`
|
|
|
|
|
Type int `binding:"required"`
|
|
|
|
|
Description string `binding:"required"`
|
|
|
|
|
Params string
|
|
|
|
|
Script string `binding:"required"`
|
2021-05-08 18:00:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type DbSqlSaveForm struct {
|
2021-07-28 18:03:19 +08:00
|
|
|
Sql string `binding:"required"`
|
|
|
|
|
Type int `binding:"required"`
|
2021-05-08 18:00:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type MachineFileUpdateForm struct {
|
2021-07-28 18:03:19 +08:00
|
|
|
Content string `binding:"required"`
|
|
|
|
|
Id uint64 `binding:"required"`
|
|
|
|
|
Path string `binding:"required"`
|
2021-05-08 18:00:33 +08:00
|
|
|
}
|