Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseController ¶
type BaseController struct { beego.Controller // contains filtered or unexported fields }
BaseController API基础控制器
func (*BaseController) CheckToken ¶ added in v0.4.0
func (c *BaseController) CheckToken()
CheckToken 检查token
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 设置错误响应信息
type PortMapController ¶
type PortMapController struct {
BaseController
}
PortMapController 端口映射功能控制器
type ResponseCodeType ¶
type ResponseCodeType int
ResponseCodeType 响应代码类型
const ( // ResponseOK 正常响应 ResponseOK ResponseCodeType = 10000 // ResponseError 错误响应 ResponseError ResponseCodeType = 90000 ResponseUnauthorized ResponseCodeType = 90100 )
type WhiteListController ¶
type WhiteListController struct {
BaseController
}
WhiteListController 白名单功能控制器
Click to show internal directories.
Click to hide internal directories.