generate.go 249 B

1234567891011121314151617
  1. package auth
  2. import (
  3. "time"
  4. )
  5. type (
  6. GenerateBasic struct {
  7. UserID string
  8. CreateAt time.Time
  9. TokenInfo TokenInfo
  10. }
  11. AccessGenerate interface {
  12. Token(data *GenerateBasic, isGenRefresh bool) (access, refresh string, err error)
  13. }
  14. )