From c7266381d82d14bc19bb82e7529b3a5111d53234 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Sat, 9 Mar 2024 17:57:59 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E6=8E=A5=E5=8F=A3/=E5=8C=85=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/framework/utils/telnet/telnet.go | 2 +- src/modules/network_element/controller/ne_action.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/framework/utils/telnet/telnet.go b/src/framework/utils/telnet/telnet.go index d224331c..651ede9d 100644 --- a/src/framework/utils/telnet/telnet.go +++ b/src/framework/utils/telnet/telnet.go @@ -12,7 +12,7 @@ import ( type ConnTelnet struct { User string `json:"user"` // 主机用户名 Addr string `json:"addr"` // 主机地址 - Port int `json:"port"` // telnet端口 + Port int64 `json:"port"` // telnet端口 Password string `json:"password"` // 认证密码 DialTimeOut time.Duration `json:"dialTimeOut"` // 连接超时断开 diff --git a/src/modules/network_element/controller/ne_action.go b/src/modules/network_element/controller/ne_action.go index 856f1f8a..783e3c07 100644 --- a/src/modules/network_element/controller/ne_action.go +++ b/src/modules/network_element/controller/ne_action.go @@ -22,7 +22,7 @@ var NewNeAction = &NeActionController{ // 网元处理请求 // -// PATH / +// PATH /action type NeActionController struct { // 网元信息服务 neInfoService neService.INeInfo @@ -66,7 +66,7 @@ func (s *NeActionController) PushFile(c *gin.Context) { c.JSON(200, result.OkData(filepath.ToSlash(neFilePath))) } -// 从网元端获取文件 +// 获取文件从网元到本地 // // GET /pullFile func (s *NeActionController) PullFile(c *gin.Context) {