mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
30 lines
1.4 KiB
Go
30 lines
1.4 KiB
Go
package form
|
||
|
||
import tagentity "mayfly-go/internal/tag/domain/entity"
|
||
|
||
type InstanceForm struct {
|
||
Id uint64 `json:"id"`
|
||
Code string `binding:"pattern=resource_code" json:"code"`
|
||
Name string `binding:"required" json:"name"`
|
||
Type string `binding:"required" json:"type"` // 类型,mysql oracle等
|
||
Host string `binding:"required" json:"host"`
|
||
Port int `json:"port"`
|
||
Extra string `json:"extra"`
|
||
Params string `json:"params"`
|
||
Remark string `json:"remark"`
|
||
SshTunnelMachineId int `json:"sshTunnelMachineId"`
|
||
|
||
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"`
|
||
Extra string `json:"extra"`
|
||
SshTunnelMachineId int `json:"sshTunnelMachineId"`
|
||
AuthCert *tagentity.ResourceAuthCert `json:"authCert" binding:"required"` // 资产授权凭证信息
|
||
}
|