Documentation ¶
Index ¶
- type BackendUserController
- type BaseController
- func (c *BaseController) CheckActionAuthor(ctrlName, ActName string) bool
- func (c *BaseController) CheckAuthor(ignores ...string)
- func (c *BaseController) JsonResult(code enums.JsonResultCode, msg string, obj interface{})
- func (c *BaseController) PageError(msg string)
- func (c *BaseController) PageLogin()
- func (c *BaseController) Prepare()
- func (c *BaseController) SetTpl(template ...string)
- type HomeController
- type ResourceController
- func (c *ResourceController) CheckUrlFor()
- func (c *ResourceController) Delete()
- func (c *ResourceController) Edit()
- func (c *ResourceController) Index()
- func (c *ResourceController) ParentTreeGrid()
- func (c *ResourceController) Prepare()
- func (c *ResourceController) Save()
- func (c *ResourceController) Select()
- func (c *ResourceController) TreeGrid()
- func (c *ResourceController) UpdateSeq()
- func (c *ResourceController) UrlFor2Link(src []*models.Resource)
- func (c *ResourceController) UrlFor2LinkOne(urlfor string) string
- func (c *ResourceController) UserMenuTree()
- type RoleController
- func (c *RoleController) Allocate()
- func (c *RoleController) DataGrid()
- func (c *RoleController) DataList()
- func (c *RoleController) Delete()
- func (c *RoleController) Edit()
- func (c *RoleController) Index()
- func (c *RoleController) Prepare()
- func (c *RoleController) Save()
- func (c *RoleController) UpdateSeq()
- type ScriptController
- type TestController
- type UserCenterController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackendUserController ¶
type BackendUserController struct {
BaseController
}
func (*BackendUserController) DataGrid ¶
func (c *BackendUserController) DataGrid()
func (*BackendUserController) Delete ¶
func (c *BackendUserController) Delete()
func (*BackendUserController) Index ¶
func (c *BackendUserController) Index()
func (*BackendUserController) Prepare ¶
func (c *BackendUserController) Prepare()
func (*BackendUserController) Save ¶
func (c *BackendUserController) Save()
type BaseController ¶
type BaseController struct { beego.Controller ControllerName string //当前控制名称 ActionName string //当前action名称 CurUser models.BackendUser //当前用户信息 }
func (*BaseController) CheckActionAuthor ¶
func (c *BaseController) CheckActionAuthor(ctrlName, ActName string) bool
判断某 Controller.Action 当前用户是否有权访问
func (*BaseController) CheckAuthor ¶
func (c *BaseController) CheckAuthor(ignores ...string)
checkLogin判断用户是否有权访问某地址,无权则会跳转到错误页面 一定要在BaseController.Prepare()后执行 会调用checkLogin 传入的参数为忽略权限控制的Action
func (*BaseController) JsonResult ¶
func (c *BaseController) JsonResult(code enums.JsonResultCode, msg string, obj interface{})
func (*BaseController) Prepare ¶
func (c *BaseController) Prepare()
func (*BaseController) SetTpl ¶
func (c *BaseController) SetTpl(template ...string)
设置模板 第一个参数模板,第二个参数为layout
type HomeController ¶
type HomeController struct {
BaseController
}
func (*HomeController) CkeditorUpload ¶
func (c *HomeController) CkeditorUpload()
func (*HomeController) DoLogin ¶
func (c *HomeController) DoLogin()
func (*HomeController) Error ¶
func (c *HomeController) Error()
func (*HomeController) Index ¶
func (c *HomeController) Index()
func (*HomeController) Login ¶
func (c *HomeController) Login()
func (*HomeController) Logout ¶
func (c *HomeController) Logout()
func (*HomeController) Page404 ¶
func (c *HomeController) Page404()
type ResourceController ¶
type ResourceController struct {
BaseController
}
func (*ResourceController) CheckUrlFor ¶
func (c *ResourceController) CheckUrlFor()
CheckUrlFor 填写UrlFor时进行验证
func (*ResourceController) Index ¶
func (c *ResourceController) Index()
func (*ResourceController) ParentTreeGrid ¶
func (c *ResourceController) ParentTreeGrid()
ParentTreeGrid 获取可以成为某节点的父节点列表
func (*ResourceController) Prepare ¶
func (c *ResourceController) Prepare()
func (*ResourceController) UpdateSeq ¶
func (c *ResourceController) UpdateSeq()
func (*ResourceController) UrlFor2Link ¶
func (c *ResourceController) UrlFor2Link(src []*models.Resource)
UrlFor2Link 使用URLFor方法,批量将资源表里的UrlFor值转成LinkUrl
func (*ResourceController) UrlFor2LinkOne ¶
func (c *ResourceController) UrlFor2LinkOne(urlfor string) string
UrlFor2LinkOne 使用URLFor方法,将资源表里的UrlFor值转成LinkUrl
func (*ResourceController) UserMenuTree ¶
func (c *ResourceController) UserMenuTree()
UserMenuTree 获取用户有权管理的菜单、区域列表
type RoleController ¶
type RoleController struct {
BaseController
}
RoleController 角色管理
func (*RoleController) UpdateSeq ¶
func (c *RoleController) UpdateSeq()
type ScriptController ¶
type ScriptController struct {
BaseController
}
func (*ScriptController) GenClass ¶
func (c *ScriptController) GenClass()
func (*ScriptController) TeamStatus ¶
func (c *ScriptController) TeamStatus()
type TestController ¶
type TestController struct {
BaseController
}
func (*TestController) Index ¶
func (c *TestController) Index()
func (*TestController) Prepare ¶
func (c *TestController) Prepare()
type UserCenterController ¶
type UserCenterController struct {
BaseController
}
func (*UserCenterController) BasicInfoSave ¶
func (c *UserCenterController) BasicInfoSave()
func (*UserCenterController) PasswordSave ¶
func (c *UserCenterController) PasswordSave()
func (*UserCenterController) Prepare ¶
func (c *UserCenterController) Prepare()
func (*UserCenterController) Profile ¶
func (c *UserCenterController) Profile()
func (*UserCenterController) UploadImage ¶
func (c *UserCenterController) UploadImage()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.