mirror of
https://github.com/beego/bee.git
synced 2024-11-22 10:10:53 +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()
|
c.ServeJSON()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get ...
|
// GetOne ...
|
||||||
// @Title Get
|
// @Title Get One
|
||||||
// @Description get {{ctrlName}} by id
|
// @Description get {{ctrlName}} by id
|
||||||
// @Param id path string true "The key for staticblock"
|
// @Param id path string true "The key for staticblock"
|
||||||
// @Success 200 {object} models.{{ctrlName}}
|
// @Success 200 {object} models.{{ctrlName}}
|
||||||
@ -1286,8 +1286,8 @@ func (c *{{ctrlName}}Controller) GetAll() {
|
|||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update ...
|
// Put ...
|
||||||
// @Title Update
|
// @Title Put
|
||||||
// @Description update the {{ctrlName}}
|
// @Description update the {{ctrlName}}
|
||||||
// @Param id path string true "The id you want to update"
|
// @Param id path string true "The id you want to update"
|
||||||
// @Param body body models.{{ctrlName}} true "body for {{ctrlName}} content"
|
// @Param body body models.{{ctrlName}} true "body for {{ctrlName}} content"
|
||||||
|
@ -134,8 +134,8 @@ func (c *{{controllerName}}Controller) GetAll() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update ...
|
// Put ...
|
||||||
// @Title Update
|
// @Title Put
|
||||||
// @Description update the {{controllerName}}
|
// @Description update the {{controllerName}}
|
||||||
// @Param id path string true "The id you want to update"
|
// @Param id path string true "The id you want to update"
|
||||||
// @Param body body models.{{controllerName}} true "body for {{controllerName}} content"
|
// @Param body body models.{{controllerName}} true "body for {{controllerName}} content"
|
||||||
@ -203,8 +203,8 @@ func (c *{{controllerName}}Controller) Post() {
|
|||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get ...
|
// GetOne ...
|
||||||
// @Title Get
|
// @Title Get One
|
||||||
// @Description get {{controllerName}} by id
|
// @Description get {{controllerName}} by id
|
||||||
// @Param id path string true "The key for staticblock"
|
// @Param id path string true "The key for staticblock"
|
||||||
// @Success 200 {object} models.{{controllerName}}
|
// @Success 200 {object} models.{{controllerName}}
|
||||||
@ -285,8 +285,8 @@ func (c *{{controllerName}}Controller) GetAll() {
|
|||||||
c.ServeJSON()
|
c.ServeJSON()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update ...
|
// Put ...
|
||||||
// @Title Update
|
// @Title Put
|
||||||
// @Description update the {{controllerName}}
|
// @Description update the {{controllerName}}
|
||||||
// @Param id path string true "The id you want to update"
|
// @Param id path string true "The id you want to update"
|
||||||
// @Param body body models.{{controllerName}} true "body for {{controllerName}} content"
|
// @Param body body models.{{controllerName}} true "body for {{controllerName}} content"
|
||||||
|
Loading…
Reference in New Issue
Block a user