From 0abdb5e5e5fa2ad12bb68bc203a48501a451d391 Mon Sep 17 00:00:00 2001 From: mayiming <1627832236@qq.com> Date: Sun, 10 Aug 2025 02:10:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0jwt=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/usermodel/jwtdata.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 model/usermodel/jwtdata.go diff --git a/model/usermodel/jwtdata.go b/model/usermodel/jwtdata.go new file mode 100644 index 0000000..3484e42 --- /dev/null +++ b/model/usermodel/jwtdata.go @@ -0,0 +1,8 @@ +package usermodel + +import "github.com/golang-jwt/jwt/v5" + +type JWTClaims struct { + OpenID string `json:"openid"` + jwt.RegisteredClaims +}