!112 feat: 机器管理支持ssh+rdp连接win服务器

* feat: rdp 文件管理
* feat: 机器管理支持ssh+rdp连接win服务器
This commit is contained in:
zongyangleo
2024-04-06 04:03:38 +00:00
committed by Coder慌
parent 38ff5152e0
commit 582d879a77
47 changed files with 17604 additions and 196 deletions

View File

@@ -11,6 +11,7 @@ type Machine struct {
Code string `json:"code"`
Name string `json:"name"`
Protocol int `json:"protocol"` // 连接协议 1.ssh 2.rdp
Ip string `json:"ip"` // IP地址
Port int `json:"port"` // 端口号
Username string `json:"username"` // 用户名
@@ -25,6 +26,9 @@ type Machine struct {
const (
MachineStatusEnable int8 = 1 // 启用状态
MachineStatusDisable int8 = -1 // 禁用状态
MachineProtocolSsh = 1
MachineProtocolRdp = 2
)
func (m *Machine) PwdEncrypt() error {