Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Orm *xorm.Engine
Functions ¶
func AutoRouter ¶
func AutoRouter(c beego.ControllerInterface)
Types ¶
type BaseController ¶
type BaseController struct {
beego.Controller
}
this is BaseController
func (*BaseController) Display ¶
func (this *BaseController) Display(file string)
func (*BaseController) SetTheme ¶
func (this *BaseController) SetTheme(theme string)
type RestBaseController ¶
type RestBaseController struct { beego.Controller // contains filtered or unexported fields }
func (*RestBaseController) CurrentUser ¶
func (this *RestBaseController) CurrentUser() *models.User
func (*RestBaseController) Error ¶
func (this *RestBaseController) Error(message string, data ...interface{})
成功返回, 用法 Error("错误信息") Error("错误信息","跳转链接") Error("错误信息",返回数据struct) Error("错误信息",返回数据struct,"跳转链接")
func (*RestBaseController) Prepare ¶
func (this *RestBaseController) Prepare()
func (*RestBaseController) Success ¶
func (this *RestBaseController) Success(message string, data ...interface{})
成功返回, 用法 Sucsess("成功信息") Success("成功信息","跳转链接") Success("成功信息",返回数据struct) Success("成功信息",返回数据struct,"跳转链接")
func (*RestBaseController) UserId ¶
func (this *RestBaseController) UserId() int64
Click to show internal directories.
Click to hide internal directories.