Documentation ¶
Index ¶
- func GetAdminID(r *ghttp.Request) uint64
- func GetAdminName(r *ghttp.Request) string
- func GetRoleID(r *ghttp.Request) uint64
- func GetUserID(r *ghttp.Request) uint64
- func RoleColumnPermission(roleID string) (re map[string]interface{}, err error)
- func RoleMenu(r *ghttp.Request) (re menu.ListModel)
- func RolePermission(roleID string) (re []string, err error)
- func SetUserAuth(r *ghttp.Request, admin *entity.Admin)
- func ValidateAuth(r *ghttp.Request) (admin *entity.Admin, err error)
- func ValidatePermission(r *ghttp.Request) bool
- func ValidateRefresh(r *ghttp.Request) (admin *entity.Admin, err error)
- func ValidateSign(r *ghttp.Request) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RoleColumnPermission ¶
RoleColumnPermission 获取会员的列表字段权限
func RolePermission ¶
RolePermission 获取权限
func ValidateAuth ¶
ValidateAuth 鉴权
func ValidateRefresh ¶
ValidateRefresh 校验刷新Token
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.