zhangqian
2023-08-11 07238f723b67c6d285aa1e4492f9df7c5a62ae66
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package request
 
import (
    "aps_crm/constvar"
    "github.com/golang-jwt/jwt/v4"
)
 
// Custom claims structure
type CustomClaims struct {
    BaseClaims
    BufferTime int64
    jwt.StandardClaims
}
 
type BaseClaims struct {
    UserId      string
    Username    string
    ParentId    string
    UserType    constvar.UserType
    AuthorityId uint
}