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.

21 lines
329 B

3 years ago
  1. package request
  2. import (
  3. "github.com/dgrijalva/jwt-go"
  4. uuid "github.com/satori/go.uuid"
  5. )
  6. // Custom claims structure
  7. type CustomClaims struct {
  8. BaseClaims
  9. BufferTime int64
  10. jwt.StandardClaims
  11. }
  12. type BaseClaims struct {
  13. UUID uuid.UUID
  14. ID uint
  15. Username string
  16. NickName string
  17. AuthorityId string
  18. }