2024-10-14 13:49:16 +08:00

12 lines
324 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package my_jwt
import "github.com/dgrijalva/jwt-go"
// 自定义jwt的声明字段信息+标准字段参考地址https://blog.csdn.net/codeSquare/article/details/99288718
type CustomClaims struct {
UserId int64 `json:"user_id"`
Name string `json:"user_name"`
Phone string `json:"phone"`
jwt.StandardClaims
}