Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppController ¶ added in v0.3.0
type AppController struct {
BaseController
}
func (*AppController) Get ¶ added in v0.3.0
func (c *AppController) Get()
type BaseController ¶
type BaseController struct { beego.Controller // contains filtered or unexported fields }
BaseController API基础控制器
func (*BaseController) Prepare ¶
func (c *BaseController) Prepare()
Prepare beego Controller Prepare事件
func (*BaseController) SetData ¶
func (c *BaseController) SetData(key string, val interface{})
SetData 设置响应数据
func (*BaseController) SetError ¶
func (c *BaseController) SetError(options ...interface{})
SetError 设置错误响应信息
func (*BaseController) SetModel ¶
func (c *BaseController) SetModel(model interface{})
SetModel 设置响应的数据模型
type LogController ¶
type LogController struct {
BaseController
}
func (*LogController) Get ¶
func (c *LogController) Get()
func (*LogController) Post ¶
func (c *LogController) Post()
type ReqController ¶
type ReqController struct {
BaseController
}
func (*ReqController) Post ¶
func (c *ReqController) Post()
type ResponseCodeType ¶
type ResponseCodeType int
ResponseCodeType 响应代码类型
const ( // ResponseOK 正常响应 ResponseOK ResponseCodeType = 10000 // ResponseError 错误响应 ResponseError ResponseCodeType = 90000 ResponseUnauthorized ResponseCodeType = 90100 )
Click to show internal directories.
Click to hide internal directories.