22 lines
328 B
Go
22 lines
328 B
Go
|
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
|
||
|
}
|