fix: 新增资源选择标签问题修复、项目文档转移

This commit is contained in:
meilin.huang
2023-06-29 20:20:58 +08:00
parent d9807b1bf0
commit d423572e01
10 changed files with 33 additions and 36 deletions

View File

@@ -11,8 +11,8 @@ type DbForm struct {
Params string `json:"params"`
Database string `json:"database"`
Remark string `json:"remark"`
TagId uint64 `json:"tagId"`
TagPath string `json:"tagPath"`
TagId uint64 `binding:"required" json:"tagId"`
TagPath string `binding:"required" json:"tagPath"`
SshTunnelMachineId int `json:"sshTunnelMachineId"`
}

View File

@@ -8,7 +8,7 @@ type MachineForm struct {
// 资产授权凭证信息列表
AuthCertId int `json:"authCertId"`
TagId uint64 `json:"tagId"`
TagId uint64 `json:"tagId" binding:"required"`
TagPath string `json:"tagPath" binding:"required"`
Username string `json:"username"`
Password string `json:"password"`

View File

@@ -6,7 +6,7 @@ type Mongo struct {
SshTunnelMachineId int `json:"sshTunnelMachineId"` // ssh隧道机器id
Name string `binding:"required" json:"name"`
TagId uint64 `binding:"required" json:"tagId"`
TagPath string `json:"tagPath"`
TagPath string `binding:"required" json:"tagPath"`
}
type MongoCommand struct {

View File

@@ -9,7 +9,7 @@ type Redis struct {
Db string `json:"db"`
SshTunnelMachineId int `json:"sshTunnelMachineId"` // ssh隧道机器id
TagId uint64 `binding:"required" json:"tagId"`
TagPath string `json:"tagPath"`
TagPath string `binding:"required" json:"tagPath"`
Remark string `json:"remark"`
}