Documentation ¶
Index ¶
- Variables
- func SaltPwd(pwd string) string
- func SetSalt(s string)
- type AuthCtx
- func (ac AuthCtx) GetGroupRoles(id GUID) (m GroupRoles)
- func (ac AuthCtx) GetOrgGroup(oid GUID) (m []GroupItem)
- func (ac AuthCtx) GetRoleRes(id GUID) (m RoleRes)
- func (ac AuthCtx) GetUserNavs(uid GUID) Navs
- func (ac AuthCtx) GetUserRes(uid GUID) (lst []res.AuthRes)
- func (ac AuthCtx) Login(req LoginReq) (resp LoginResp)
- type GroupItem
- type GroupRoles
- type LoginReq
- type LoginResp
- type Nav
- type Navs
- type RoleRes
Constants ¶
This section is empty.
Variables ¶
View Source
var Ctx = &AuthCtx{}
Functions ¶
Types ¶
type AuthCtx ¶
type AuthCtx struct { }
func (AuthCtx) GetGroupRoles ¶
func (ac AuthCtx) GetGroupRoles(id GUID) (m GroupRoles)
func (AuthCtx) GetOrgGroup ¶
func (AuthCtx) GetRoleRes ¶
func (AuthCtx) GetUserNavs ¶
func (AuthCtx) GetUserRes ¶
Click to show internal directories.
Click to hide internal directories.