refactor: clean code

This commit is contained in:
Fu Diwei
2025-05-28 10:17:33 +08:00
parent df1f216b5b
commit ddb46f9dda
8 changed files with 14 additions and 14 deletions

View File

@@ -19,10 +19,10 @@ import (
type JumpServerConfig struct {
// SSH 主机。
// 零值时默认 "localhost"。
// 零值时默认 "localhost"。
SshHost string `json:"sshHost,omitempty"`
// SSH 端口。
// 零值时默认 22。
// 零值时默认 22。
SshPort int32 `json:"sshPort,omitempty"`
// SSH 登录用户名。
SshUsername string `json:"sshUsername,omitempty"`
@@ -36,10 +36,10 @@ type JumpServerConfig struct {
type DeployerConfig struct {
// SSH 主机。
// 零值时默认 "localhost"。
// 零值时默认 "localhost"。
SshHost string `json:"sshHost,omitempty"`
// SSH 端口。
// 零值时默认 22。
// 零值时默认 22。
SshPort int32 `json:"sshPort,omitempty"`
// SSH 登录用户名。
SshUsername string `json:"sshUsername,omitempty"`