13 lines
191 B
Go
13 lines
191 B
Go
|
package model
|
||
|
|
||
|
import (
|
||
|
"github.com/golang-jwt/jwt/v4"
|
||
|
)
|
||
|
|
||
|
type Claim struct {
|
||
|
UID uint `json:"id"`
|
||
|
Role Role `json:"role"`
|
||
|
Version int64 `json:"version"`
|
||
|
jwt.RegisteredClaims
|
||
|
}
|