jwt.go 230 B

123456789101112131415161718
  1. package request
  2. import (
  3. "github.com/golang-jwt/jwt/v4"
  4. )
  5. type CustomClaims struct {
  6. BaseClaims
  7. BufferTime int64
  8. jwt.RegisteredClaims
  9. }
  10. type BaseClaims struct {
  11. LoginID int
  12. Group int
  13. SessionID int
  14. UserID int
  15. }