20 lines
312 B
Go
20 lines
312 B
Go
package model
|
|
|
|
import (
|
|
jwt "github.com/golang-jwt/jwt/v5"
|
|
"qnc-server/model/model"
|
|
)
|
|
|
|
type CustomClaims struct {
|
|
BaseClaims
|
|
BufferTime int64
|
|
jwt.RegisteredClaims
|
|
}
|
|
|
|
type BaseClaims struct {
|
|
Userid uint
|
|
Disable bool
|
|
AuthIdentifiers model.AuthIdentifier
|
|
Platform model.AuthType
|
|
}
|