style: 补充注释

This commit is contained in:
TsMask
2024-06-18 11:59:01 +08:00
parent 580e138a79
commit dafb80206f
3 changed files with 14 additions and 14 deletions

View File

@@ -18,17 +18,17 @@ var NewNeLicense = &NeLicenseController{
neInfoService: neService.NewNeInfoImpl,
}
// 网元授权激活信息请求
// 网元授权激活请求
//
// PATH /license
type NeLicenseController struct {
// 网元授权激活信息服务
// 网元授权激活服务
neLicenseService neService.INeLicense
// 网元信息服务
neInfoService neService.INeInfo
}
// 网元授权激活信息列表
// 网元授权激活列表
//
// GET /list
func (s *NeLicenseController) List(c *gin.Context) {

View File

@@ -18,15 +18,15 @@ var NewNeSoftware = &NeSoftwareController{
neSoftwareService: neService.NewNeSoftwareImpl,
}
// 网元软件包信息请求
// 网元软件包请求
//
// PATH /software
type NeSoftwareController struct {
// 网元软件包信息服务
// 网元软件包服务
neSoftwareService neService.INeSoftware
}
// 网元软件包信息列表
// 网元软件包列表
//
// GET /list
func (s *NeSoftwareController) List(c *gin.Context) {
@@ -36,7 +36,7 @@ func (s *NeSoftwareController) List(c *gin.Context) {
c.JSON(200, result.Ok(data))
}
// 网元软件包信息信息
// 网元软件包信息
//
// GET /:softwareId
func (s *NeSoftwareController) Info(c *gin.Context) {
@@ -57,7 +57,7 @@ func (s *NeSoftwareController) Info(c *gin.Context) {
c.JSON(200, result.OkData(neSoftware))
}
// 网元软件包信息新增
// 网元软件包新增
//
// POST /
func (s *NeSoftwareController) Add(c *gin.Context) {
@@ -98,7 +98,7 @@ func (s *NeSoftwareController) Add(c *gin.Context) {
c.JSON(200, result.Err(nil))
}
// 网元软件包信息修改
// 网元软件包修改
//
// PUT /
func (s *NeSoftwareController) Edit(c *gin.Context) {
@@ -136,7 +136,7 @@ func (s *NeSoftwareController) Edit(c *gin.Context) {
c.JSON(200, result.Err(nil))
}
// 网元软件包信息删除
// 网元软件包删除
//
// DELETE /:softwareIds
func (s *NeSoftwareController) Remove(c *gin.Context) {

View File

@@ -14,15 +14,15 @@ var NewNeVersion = &NeVersionController{
neVersionService: neService.NewNeVersionImpl,
}
// 网元版本信息请求
// 网元版本请求
//
// PATH /version
type NeVersionController struct {
// 网元版本信息服务
// 网元版本服务
neVersionService neService.INeVersion
}
// 网元版本信息列表
// 网元版本列表
//
// GET /list
func (s *NeVersionController) List(c *gin.Context) {
@@ -32,7 +32,7 @@ func (s *NeVersionController) List(c *gin.Context) {
c.JSON(200, result.Ok(data))
}
// 网元版本信息信息
// 网元版本信息
//
// GET /:versionId
func (s *NeVersionController) Info(c *gin.Context) {