mirror of
https://github.com/beego/bee.git
synced 2024-11-25 20:10:55 +00:00
修改PUT和Get One 错误的注释
This commit is contained in:
parent
ad34b7be2a
commit
411aa43080
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user