Documentation ¶
Overview ¶
Package controllers 控制器相关.
Index ¶
- type AccountController
- type BaseController
- func (c *BaseController) BaseUrl() string
- func (c *BaseController) ExecuteViewPathTemplate(tplName string, data interface{}) (string, error)
- func (c *BaseController) Forbidden(message interface{})
- func (c *BaseController) JsonResult(errCode int, errMsg string, data ...interface{})
- func (c *BaseController) NotFound(message interface{})
- func (c *BaseController) Prepare()
- func (c *BaseController) ServerError(message interface{})
- func (c *BaseController) SetMember(member models.Member)
- func (c *BaseController) UrlFor(endpoint string, values ...interface{}) string
- type HomeController
- type MemberController
- type PayloadController
- type RelationController
- type SchedulerController
- type ServerController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountController ¶
type AccountController struct {
BaseController
}
AccountController 用户登录与注册.
type BaseController ¶
type BaseController struct { beego.Controller Member *models.Member Scheme string }
BaseController 基础控制器
func (*BaseController) ExecuteViewPathTemplate ¶
func (c *BaseController) ExecuteViewPathTemplate(tplName string, data interface{}) (string, error)
ExecuteViewPathTemplate 执行指定的模板并返回执行结果.
func (*BaseController) Forbidden ¶
func (c *BaseController) Forbidden(message interface{})
Forbidden .
func (*BaseController) JsonResult ¶
func (c *BaseController) JsonResult(errCode int, errMsg string, data ...interface{})
JsonResult 响应 json 结果
func (*BaseController) ServerError ¶
func (c *BaseController) ServerError(message interface{})
ServerError .
func (*BaseController) SetMember ¶
func (c *BaseController) SetMember(member models.Member)
SetMember 获取或设置当前登录用户信息,如果 MemberId 小于 0 则标识删除 Session
func (*BaseController) UrlFor ¶
func (c *BaseController) UrlFor(endpoint string, values ...interface{}) string
UrlFor .
type PayloadController ¶
type PayloadController struct {
BaseController
}
PayloadController Git回调页面控制器.
type RelationController ¶
type RelationController struct {
BaseController
}
RelationController 关系控制器
func (*RelationController) AddServer ¶
func (c *RelationController) AddServer()
AddServer 检索服务器并添加到数据库
func (*RelationController) DeleteServer ¶
func (c *RelationController) DeleteServer()
DeleteServer 删除一个服务器
type SchedulerController ¶
type SchedulerController struct {
BaseController
}
SchedulerController 任务调度控制器
Click to show internal directories.
Click to hide internal directories.