mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-31 19:56:36 +08:00
refactor: 数据库授权凭证迁移
This commit is contained in:
@@ -5,13 +5,13 @@ import tagentity "mayfly-go/internal/tag/domain/entity"
|
||||
type MachineForm struct {
|
||||
Id uint64 `json:"id"`
|
||||
Protocol int `json:"protocol" binding:"required"`
|
||||
Code string `json:"code" binding:"required"`
|
||||
Code string `json:"code" binding:"pattern=resource_code"`
|
||||
Name string `json:"name" binding:"required"`
|
||||
Ip string `json:"ip" binding:"required"` // IP地址
|
||||
Port int `json:"port" binding:"required"` // 端口号
|
||||
|
||||
TagId []uint64 `json:"tagId" binding:"required"`
|
||||
AuthCerts []*tagentity.ResourceAuthCert // 资产授权凭证信息列表
|
||||
AuthCerts []*tagentity.ResourceAuthCert `json:"authCerts" binding:"required"` // 资产授权凭证信息列表
|
||||
|
||||
Remark string `json:"remark"`
|
||||
SshTunnelMachineId int `json:"sshTunnelMachineId"` // ssh隧道机器id
|
||||
|
||||
Reference in New Issue
Block a user