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