1
0
mirror of https://github.com/beego/bee.git synced 2025-07-05 18:20:18 +00:00

add downsql & controller add mapping

This commit is contained in:
astaxie
2014-08-18 12:21:21 +08:00
parent f97e13c5aa
commit 9faf04fea0
4 changed files with 22 additions and 2 deletions

View File

@ -68,6 +68,14 @@ type {{controllerName}}Controller struct {
beego.Controller
}
func (this *{{controllerName}}Controller) URLMapping() {
this.Mapping("Post", this.Post)
this.Mapping("GetOne", this.GetOne)
this.Mapping("GetAll", this.GetAll)
this.Mapping("Put", this.Put)
this.Mapping("Delete", this.Delete)
}
// @Title Post
// @Description create {{controllerName}}
// @Param body body models.{{controllerName}} true "body for {{controllerName}} content"