feat: jwt生成token

This commit is contained in:
Blizzard
2025-04-28 21:42:13 +08:00
parent 77405783c6
commit 75e9157e5e
4 changed files with 269 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package request
import (
"github.com/golang-jwt/jwt/v5"
"github.com/google/uuid"
)
type CustomClaims struct {
BaseClaims
BufferTime int64
jwt.RegisteredClaims
}
type BaseClaims struct {
UUID uuid.UUID
ID uint
Account string
}