Documentation ¶
Index ¶
Constants ¶
View Source
const Issuer = "Money-Hub"
View Source
const SecretKey = "MoneyDodo"
View Source
const TokenName = "token"
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func CreateToken(SecretKey []byte, issuer string, id string, role int) (tokenString string, err error)
*
- 生成 token
- SecretKey 是一个 const 常量
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.