1
0
mirror of https://github.com/beego/bee.git synced 2024-11-22 05:00:54 +00:00

修改PUT和Get One 错误的注释

This commit is contained in:
ZetaChow 2016-09-09 15:27:36 +08:00
parent ad34b7be2a
commit 411aa43080
2 changed files with 10 additions and 10 deletions

View File

@ -1204,8 +1204,8 @@ func (c *{{ctrlName}}Controller) Post() {
c.ServeJSON()
}
// Get ...
// @Title Get
// GetOne ...
// @Title Get One
// @Description get {{ctrlName}} by id
// @Param id path string true "The key for staticblock"
// @Success 200 {object} models.{{ctrlName}}
@ -1286,8 +1286,8 @@ func (c *{{ctrlName}}Controller) GetAll() {
c.ServeJSON()
}
// Update ...
// @Title Update
// Put ...
// @Title Put
// @Description update the {{ctrlName}}
// @Param id path string true "The id you want to update"
// @Param body body models.{{ctrlName}} true "body for {{ctrlName}} content"

View File

@ -134,8 +134,8 @@ func (c *{{controllerName}}Controller) GetAll() {
}
// Update ...
// @Title Update
// Put ...
// @Title Put
// @Description update the {{controllerName}}
// @Param id path string true "The id you want to update"
// @Param body body models.{{controllerName}} true "body for {{controllerName}} content"
@ -203,8 +203,8 @@ func (c *{{controllerName}}Controller) Post() {
c.ServeJSON()
}
// Get ...
// @Title Get
// GetOne ...
// @Title Get One
// @Description get {{controllerName}} by id
// @Param id path string true "The key for staticblock"
// @Success 200 {object} models.{{controllerName}}
@ -285,8 +285,8 @@ func (c *{{controllerName}}Controller) GetAll() {
c.ServeJSON()
}
// Update ...
// @Title Update
// Put ...
// @Title Put
// @Description update the {{controllerName}}
// @Param id path string true "The id you want to update"
// @Param body body models.{{controllerName}} true "body for {{controllerName}} content"