Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EXPIRE time.Duration SECRET string )
Functions ¶
This section is empty.
Types ¶
type JwtClaims ¶
type JwtClaims struct { ID interface{} `json:"id"` Username string `json:"username"` jwt.StandardClaims }
func (*JwtClaims) GenerateToken ¶
GenerateToken 签发Token
Click to show internal directories.
Click to hide internal directories.