Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BaseController ¶
type BaseController struct { beego.Controller i18n.Locale Module string }
控制器基类
func (*BaseController) SetPaginator ¶
func (this *BaseController) SetPaginator(per int, nums int64) *utils.Paginator
设置分页
func (*BaseController) View ¶
func (this *BaseController) View(tpl string)
模板封装处理 *
- @api POST /user/:id get user
type JSONResponse ¶
type JSONResponse struct { Ret interface{} `json:"ret"` Msg interface{} `json:"msg"` Data interface{} `json:"data"` URL interface{} `json:"url"` IsTop interface{} `json:"is_top"` }
Click to show internal directories.
Click to hide internal directories.