🎨 新增用户&完善文章模块

This commit is contained in:
2025-04-09 19:16:49 +08:00
parent f8e7b9dad2
commit 00df85c4f0
20 changed files with 431 additions and 92 deletions

15
model/user/request/jwt.go Normal file
View File

@@ -0,0 +1,15 @@
package request
import "github.com/golang-jwt/jwt/v5"
type BaseClaims struct {
NickName string `json:"nickName"`
ID uint `json:"id"`
Phone string `json:"phone"`
}
type CustomClaims struct {
BaseClaims
BufferTime int64
jwt.RegisteredClaims
}