refactor: 部分日志请求入参调整为json

This commit is contained in:
meilin.huang
2023-09-09 23:34:26 +08:00
parent 08c381fa60
commit 8e75e1f6ef
16 changed files with 98 additions and 88 deletions

View File

@@ -18,20 +18,20 @@ import (
// 机器信息
type Info struct {
Id uint64
Id uint64 `json:"id"`
Name string `json:"name"`
Ip string `json:"ip"` // IP地址
Port int `json:"port"` // 端口号
Ip string `json:"ip"` // IP地址
Port int `json:"-"` // 端口号
AuthMethod int8 `json:"authMethod"` // 授权认证方式
Username string `json:"username"` // 用户名
AuthMethod int8 `json:"-"` // 授权认证方式
Username string `json:"-"` // 用户名
Password string `json:"-"`
Passphrase string `json:"-"` // 私钥口令
Status int8 `json:"status"` // 状态 1:启用2:停用
SshTunnelMachineId int `json:"sshTunnelMachineId"` // ssh隧道机器id
EnableRecorder int8 `json:"enableRecorder"` // 是否启用终端回放记录
TagId uint64 `json:"tagId"`
Status int8 `json:"-"` // 状态 1:启用2:停用
SshTunnelMachineId int `json:"-"` // ssh隧道机器id
EnableRecorder int8 `json:"-"` // 是否启用终端回放记录
TagId uint64 `json:"-"`
TagPath string `json:"tagPath"`
}