Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TokenAuther ¶
type TokenAuther struct {
// contains filtered or unexported fields
}
用于鉴权的中间件 用于Token鉴权的中间件
func NewTokenAuther ¶
func NewTokenAuther() *TokenAuther
func (*TokenAuther) Perm ¶
func (a *TokenAuther) Perm(c *gin.Context)
权限鉴定, 鉴权是在用户已经认证的情况之下进行的 判断当前用户的角色
Click to show internal directories.
Click to hide internal directories.