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, neInfoService: neService.NewNeInfoImpl,
} }
// 网元授权激活信息请求 // 网元授权激活请求
// //
// PATH /license // PATH /license
type NeLicenseController struct { type NeLicenseController struct {
// 网元授权激活信息服务 // 网元授权激活服务
neLicenseService neService.INeLicense neLicenseService neService.INeLicense
// 网元信息服务 // 网元信息服务
neInfoService neService.INeInfo neInfoService neService.INeInfo
} }
// 网元授权激活信息列表 // 网元授权激活列表
// //
// GET /list // GET /list
func (s *NeLicenseController) List(c *gin.Context) { func (s *NeLicenseController) List(c *gin.Context) {

View File

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

View File

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