Documentation ¶
Index ¶
- func AccessDecision(params []string, accesslist map[string]bool) bool
- func AccessRegister()
- func CheckAccess(params []string) bool
- func CheckLogin(username string, password string) (user models.User, err error)
- type AdminController
- type Attributes
- type CommonController
- type MainController
- type Tree
- type UserController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessDecision ¶
To test whether permissions
Types ¶
type AdminController ¶
type AdminController struct {
CommonController
}
func (*AdminController) AdminLogin ¶
func (this *AdminController) AdminLogin()
type Attributes ¶
type CommonController ¶
type CommonController struct { beego.Controller // Templatetype string //ui template type // o orm.Ormer // controllerName string // actionName string IsLogin bool }
func (*CommonController) Abort500 ¶
func (this *CommonController) Abort500(err error)
func (*CommonController) GetMustString ¶
func (c *CommonController) GetMustString(key string, msg string) string
func (*CommonController) GetTemplatetype ¶
func (this *CommonController) GetTemplatetype() string
func (*CommonController) MustLogin ¶
func (this *CommonController) MustLogin()
func (*CommonController) Rsp ¶
func (this *CommonController) Rsp(status bool, str string)
type MainController ¶
type MainController struct {
CommonController
}
type UserController ¶
type UserController struct {
CommonController
}
func (*UserController) AddUser ¶
func (this *UserController) AddUser()
func (*UserController) DelUser ¶
func (this *UserController) DelUser()
func (*UserController) Login ¶
func (this *UserController) Login()
func (*UserController) UpdateUser ¶
func (this *UserController) UpdateUser()
Click to show internal directories.
Click to hide internal directories.