qnc-server-old/model/common/jwt.go

20 lines
312 B
Go
Raw Permalink Normal View History

2024-09-14 10:48:09 +08:00
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
}