2023-08-27 11:07:29 +08:00
|
|
|
|
package form
|
|
|
|
|
|
|
2024-04-12 13:24:20 +08:00
|
|
|
|
import tagentity "mayfly-go/internal/tag/domain/entity"
|
|
|
|
|
|
|
2023-08-27 11:07:29 +08:00
|
|
|
|
type InstanceForm struct {
|
|
|
|
|
|
Id uint64 `json:"id"`
|
2024-04-12 13:24:20 +08:00
|
|
|
|
Code string `binding:"pattern=resource_code" json:"code"`
|
2023-08-27 11:07:29 +08:00
|
|
|
|
Name string `binding:"required" json:"name"`
|
|
|
|
|
|
Type string `binding:"required" json:"type"` // 类型,mysql oracle等
|
|
|
|
|
|
Host string `binding:"required" json:"host"`
|
2024-01-19 08:59:35 +00:00
|
|
|
|
Port int `json:"port"`
|
2024-03-07 17:26:11 +08:00
|
|
|
|
Extra string `json:"extra"`
|
2023-08-27 11:07:29 +08:00
|
|
|
|
Params string `json:"params"`
|
|
|
|
|
|
Remark string `json:"remark"`
|
|
|
|
|
|
SshTunnelMachineId int `json:"sshTunnelMachineId"`
|
2024-04-12 13:24:20 +08:00
|
|
|
|
|
2024-04-17 21:28:28 +08:00
|
|
|
|
AuthCerts []*tagentity.ResourceAuthCert `json:"authCerts" binding:"required"` // 资产授权凭证信息列表
|
|
|
|
|
|
TagCodePaths []string `binding:"required" json:"tagCodePaths"`
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type InstanceDbNamesForm struct {
|
|
|
|
|
|
Type string `binding:"required" json:"type"` // 类型,mysql oracle等
|
|
|
|
|
|
Host string `binding:"required" json:"host"`
|
|
|
|
|
|
Port int `json:"port"`
|
|
|
|
|
|
Params string `json:"params"`
|
2024-04-27 01:35:21 +08:00
|
|
|
|
Extra string `json:"extra"`
|
2024-04-17 21:28:28 +08:00
|
|
|
|
SshTunnelMachineId int `json:"sshTunnelMachineId"`
|
|
|
|
|
|
AuthCert *tagentity.ResourceAuthCert `json:"authCert" binding:"required"` // 资产授权凭证信息
|
2023-08-27 11:07:29 +08:00
|
|
|
|
}
|