1
0
mirror of https://github.com/beego/bee.git synced 2024-11-23 11:50:55 +00:00

Notes Error Correction

This commit is contained in:
MingZong 2016-04-07 14:17:19 +08:00
parent 09324b884b
commit bedaf1c806

View File

@ -87,8 +87,8 @@ func (c *{{controllerName}}Controller) URLMapping() {
// @Title Post // @Title Post
// @Description create {{controllerName}} // @Description create {{controllerName}}
// @Param body body models.{{controllerName}} true "body for {{controllerName}} content" // @Param body body structures.{{controllerName}} true "body for {{controllerName}} content"
// @Success 201 {object} models.{{controllerName}} // @Success 201 {object} structures.{{controllerName}}
// @Failure 403 body is empty // @Failure 403 body is empty
// @router / [post] // @router / [post]
func (c *{{controllerName}}Controller) Post() { func (c *{{controllerName}}Controller) Post() {
@ -98,7 +98,7 @@ func (c *{{controllerName}}Controller) Post() {
// @Title Get // @Title Get
// @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} structures.{{controllerName}}
// @Failure 403 :id is empty // @Failure 403 :id is empty
// @router /:id [get] // @router /:id [get]
func (c *{{controllerName}}Controller) GetOne() { func (c *{{controllerName}}Controller) GetOne() {
@ -113,7 +113,7 @@ func (c *{{controllerName}}Controller) GetOne() {
// @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." // @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..."
// @Param limit query string false "Limit the size of result set. Must be an integer" // @Param limit query string false "Limit the size of result set. Must be an integer"
// @Param offset query string false "Start position of result set. Must be an integer" // @Param offset query string false "Start position of result set. Must be an integer"
// @Success 200 {object} models.{{controllerName}} // @Success 200 {object} structures.{{controllerName}}
// @Failure 403 // @Failure 403
// @router / [get] // @router / [get]
func (c *{{controllerName}}Controller) GetAll() { func (c *{{controllerName}}Controller) GetAll() {
@ -124,7 +124,7 @@ func (c *{{controllerName}}Controller) GetAll() {
// @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"
// @Success 200 {object} models.{{controllerName}} // @Success 200 {object} structures.{{controllerName}}
// @Failure 403 :id is not int // @Failure 403 :id is not int
// @router /:id [put] // @router /:id [put]
func (c *{{controllerName}}Controller) Put() { func (c *{{controllerName}}Controller) Put() {
@ -170,8 +170,8 @@ func (c *{{controllerName}}Controller) URLMapping() {
// @Title Post // @Title Post
// @Description create {{controllerName}} // @Description create {{controllerName}}
// @Param body body models.{{controllerName}} true "body for {{controllerName}} content" // @Param body body structures.{{controllerName}} true "body for {{controllerName}} content"
// @Success 201 {int} models.{{controllerName}} // @Success 201 {int} structures.{{controllerName}}
// @Failure 403 body is empty // @Failure 403 body is empty
// @router / [post] // @router / [post]
func (c *{{controllerName}}Controller) Post() { func (c *{{controllerName}}Controller) Post() {
@ -189,7 +189,7 @@ func (c *{{controllerName}}Controller) Post() {
// @Title Get // @Title Get
// @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} structures.{{controllerName}}
// @Failure 403 :id is empty // @Failure 403 :id is empty
// @router /:id [get] // @router /:id [get]
func (c *{{controllerName}}Controller) GetOne() { func (c *{{controllerName}}Controller) GetOne() {
@ -212,7 +212,7 @@ func (c *{{controllerName}}Controller) GetOne() {
// @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..." // @Param order query string false "Order corresponding to each sortby field, if single value, apply to all sortby fields. e.g. desc,asc ..."
// @Param limit query string false "Limit the size of result set. Must be an integer" // @Param limit query string false "Limit the size of result set. Must be an integer"
// @Param offset query string false "Start position of result set. Must be an integer" // @Param offset query string false "Start position of result set. Must be an integer"
// @Success 200 {object} models.{{controllerName}} // @Success 200 {object} structures.{{controllerName}}
// @Failure 403 // @Failure 403
// @router / [get] // @router / [get]
func (c *{{controllerName}}Controller) GetAll() { func (c *{{controllerName}}Controller) GetAll() {
@ -270,7 +270,7 @@ func (c *{{controllerName}}Controller) GetAll() {
// @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"
// @Success 200 {object} models.{{controllerName}} // @Success 200 {object} structures.{{controllerName}}
// @Failure 403 :id is not int // @Failure 403 :id is not int
// @router /:id [put] // @router /:id [put]
func (c *{{controllerName}}Controller) Put() { func (c *{{controllerName}}Controller) Put() {