Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JwtToken ¶
type JwtToken struct { UID string `json:"uid"` // 所有者ID Role string `json:"role"` // 角色 Token string `json:"token"` // token EffectiveTime uint `json:"effectiveTime"` // 有效时间,单位:秒 }
JwtToken jwt的token
func CreateToken ¶
CreateToken 创建jwt token
Click to show internal directories.
Click to hide internal directories.