jiangshuai
2023-12-19 f6bf0ee81b080a2bad55aa5bf261c68ab3d555f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package request
 
import (
    "github.com/dgrijalva/jwt-go"
    "srm/constvar"
)
 
// Custom claims structure
type CustomClaims struct {
    BaseClaims
    BufferTime int64
    jwt.StandardClaims
}
 
type BaseClaims struct {
    UserId   string
    Username string
    ParentId string
    UserType constvar.UserType
}