广告平台(站长使用)
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.

преди 3 месеца
преди 1 месец
преди 3 месеца
преди 2 месеца
преди 3 месеца
преди 2 месеца
преди 3 месеца
12345678910111213141516171819
  1. package auth
  2. import (
  3. "time"
  4. "github.com/dgrijalva/jwt-go"
  5. )
  6. // TokenExpireDuration is jwt 过期时间
  7. const TokenExpireDuration = time.Hour * 2
  8. var Secret = []byte("micro_group_admin")
  9. // JWTUser 如果想要保存更多信息,都可以添加到这个结构体中
  10. type JWTUser struct {
  11. AdmId int `json:"adm_id"`
  12. Username string `json:"username"`
  13. jwt.StandardClaims
  14. }