# Functions

GenToken 生成token.
No description provided by the author

# Constants

TokenExpireDuration 定义JWT的过期时间.

# Structs

MyClaims 自定义声明结构体并内嵌jwt.StandardClaims jwt包自带的jwt.StandardClaims只包含了官方字段 我们这里需要额外记录UserID字段和Username,所以要自定义结构体 如果想要保存更多信息,都可以添加到这个结构体中.