mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-01-03 13:16:35 +08:00
refactor: 后端路由定义方式&请求参数绑定重构
This commit is contained in:
@@ -1,21 +1,14 @@
|
||||
package entity
|
||||
|
||||
import "mayfly-go/pkg/model"
|
||||
|
||||
type MachineQuery struct {
|
||||
model.Model
|
||||
Name string `json:"name"`
|
||||
Ip string `json:"ip"` // IP地址
|
||||
Username string `json:"username"` // 用户名
|
||||
AuthMethod int8 `json:"authMethod"` // 授权认证方式
|
||||
Password string `json:"-"`
|
||||
Port int `json:"port"` // 端口号
|
||||
Status int8 `json:"status"` // 状态 1:启用;2:停用
|
||||
Remark string `json:"remark"` // 备注
|
||||
SshTunnelMachineId uint64 `json:"sshTunnelMachineId"` // ssh隧道机器id
|
||||
EnableRecorder int8 `json:"enableRecorder"` // 是否启用终端回放记录
|
||||
|
||||
TagId uint64
|
||||
TagPathLike string
|
||||
TagIds []uint64
|
||||
Name string `json:"name" form:"name"`
|
||||
Ip string `json:"ip" form:"ip"` // IP地址
|
||||
TagPath string `json:"tagPath" form:"tagPath"`
|
||||
TagIds []uint64
|
||||
}
|
||||
|
||||
type AuthCertQuery struct {
|
||||
Id uint64 `json:"id" form:"id"`
|
||||
Name string `json:"name" form:"name"`
|
||||
AuthMethod string `json:"authMethod" form:"authMethod"` // IP地址
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user