Files
mayfly-go/server/internal/db/api/form/instance.go
2024-04-12 13:24:20 +08:00

19 lines
758 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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"` // 资产授权凭证信息列表
}