123456789101112131415161718192021 |
- package request
- import (
- "github.com/gofrs/uuid/v5"
- jwt "github.com/golang-jwt/jwt/v4"
- )
- // Custom claims structure
- type CustomClaims struct {
- BaseClaims
- BufferTime int64
- jwt.RegisteredClaims
- }
- type BaseClaims struct {
- UUID uuid.UUID
- ID uint
- Username string
- NickName string
- AuthorityId uint
- }
|