style: 接口/包注释
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
|||||||
type ConnTelnet struct {
|
type ConnTelnet struct {
|
||||||
User string `json:"user"` // 主机用户名
|
User string `json:"user"` // 主机用户名
|
||||||
Addr string `json:"addr"` // 主机地址
|
Addr string `json:"addr"` // 主机地址
|
||||||
Port int `json:"port"` // telnet端口
|
Port int64 `json:"port"` // telnet端口
|
||||||
Password string `json:"password"` // 认证密码
|
Password string `json:"password"` // 认证密码
|
||||||
|
|
||||||
DialTimeOut time.Duration `json:"dialTimeOut"` // 连接超时断开
|
DialTimeOut time.Duration `json:"dialTimeOut"` // 连接超时断开
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ var NewNeAction = &NeActionController{
|
|||||||
|
|
||||||
// 网元处理请求
|
// 网元处理请求
|
||||||
//
|
//
|
||||||
// PATH /
|
// PATH /action
|
||||||
type NeActionController struct {
|
type NeActionController struct {
|
||||||
// 网元信息服务
|
// 网元信息服务
|
||||||
neInfoService neService.INeInfo
|
neInfoService neService.INeInfo
|
||||||
@@ -66,7 +66,7 @@ func (s *NeActionController) PushFile(c *gin.Context) {
|
|||||||
c.JSON(200, result.OkData(filepath.ToSlash(neFilePath)))
|
c.JSON(200, result.OkData(filepath.ToSlash(neFilePath)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// 从网元端获取文件
|
// 获取文件从网元到本地
|
||||||
//
|
//
|
||||||
// GET /pullFile
|
// GET /pullFile
|
||||||
func (s *NeActionController) PullFile(c *gin.Context) {
|
func (s *NeActionController) PullFile(c *gin.Context) {
|
||||||
|
|||||||
Reference in New Issue
Block a user