Documentation ¶
Index ¶
- Variables
- func CheckCookie(ctx *context.Context) (bool, admin.User)
- func CheckLogin(username string, password string) (user admin.User, err error)
- type Attributes
- type CommonController
- type GroupController
- type MainController
- type NodeController
- type RoleController
- func (this *RoleController) AccessToNode()
- func (this *RoleController) AddAccess()
- func (this *RoleController) AddAndEdit()
- func (this *RoleController) AddRoleToUser()
- func (this *RoleController) DelRole()
- func (this *RoleController) Getlist()
- func (this *RoleController) Index()
- func (this *RoleController) RoleToUserList()
- type Tree
- type UserController
Constants ¶
This section is empty.
Variables ¶
View Source
var Cookie7 = beego.AppConfig.String("cookie7")
Functions ¶
Types ¶
type Attributes ¶
type CommonController ¶
type CommonController struct { Templatetype string //ui template type // contains filtered or unexported fields }
func (*CommonController) GetTree ¶
func (this *CommonController) GetTree() []Tree
获取权限各节点URL 权限控制器 用户节点 /rbac /node/index
func (*CommonController) Prepare ¶
func (this *CommonController) Prepare()
type GroupController ¶
type GroupController struct {
CommonController
}
func (*GroupController) AddGroup ¶
func (this *GroupController) AddGroup()
func (*GroupController) DelGroup ¶
func (this *GroupController) DelGroup()
func (*GroupController) Index ¶
func (this *GroupController) Index()
func (*GroupController) UpdateGroup ¶
func (this *GroupController) UpdateGroup()
type MainController ¶
type MainController struct {
CommonController
}
func (*MainController) Index ¶
func (this *MainController) Index()
后台首页,路由路径不是三个参数且public不经过过滤器,这里要验证一下。
type NodeController ¶
type NodeController struct {
CommonController
}
func (*NodeController) AddAndEdit ¶
func (this *NodeController) AddAndEdit()
func (*NodeController) DelNode ¶
func (this *NodeController) DelNode()
func (*NodeController) Index ¶
func (this *NodeController) Index()
func (*NodeController) Rsp ¶
func (this *NodeController) Rsp(status bool, str string)
type RoleController ¶
type RoleController struct {
CommonController
}
func (*RoleController) AccessToNode ¶
func (this *RoleController) AccessToNode()
func (*RoleController) AddAccess ¶
func (this *RoleController) AddAccess()
func (*RoleController) AddAndEdit ¶
func (this *RoleController) AddAndEdit()
func (*RoleController) AddRoleToUser ¶
func (this *RoleController) AddRoleToUser()
func (*RoleController) DelRole ¶
func (this *RoleController) DelRole()
func (*RoleController) Getlist ¶
func (this *RoleController) Getlist()
func (*RoleController) Index ¶
func (this *RoleController) Index()
func (*RoleController) RoleToUserList ¶
func (this *RoleController) RoleToUserList()
type UserController ¶
type UserController struct {
CommonController
}
func (*UserController) AddUser ¶
func (this *UserController) AddUser()
func (*UserController) DelUser ¶
func (this *UserController) DelUser()
func (*UserController) Index ¶
func (this *UserController) Index()
func (*UserController) UpdateUser ¶
func (this *UserController) UpdateUser()
func (*UserController) UpdateUserPasswd ¶
func (this *UserController) UpdateUserPasswd()
UpdateUserPasswd
Click to show internal directories.
Click to hide internal directories.