修改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"