jwt.go 290 B

1234567891011121314151617
  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. UUID uuid.UUID
  9. ID uint
  10. Username string
  11. NickName string
  12. AuthorityId string
  13. BufferTime int64
  14. jwt.StandardClaims
  15. }