You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
324 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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
}