style: 接口/包注释

This commit is contained in:
TsMask
2024-03-09 17:57:59 +08:00
parent fe9e12ef4d
commit c7266381d8
2 changed files with 3 additions and 3 deletions

View File

@@ -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"` // 连接超时断开

View File

@@ -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) {