base-golang/pkg/auth/generate.go

18 lines
249 B
Go
Raw Normal View History

2024-07-23 10:23:43 +08:00
package auth
import (
"time"
)
type (
GenerateBasic struct {
UserID string
CreateAt time.Time
TokenInfo TokenInfo
}
AccessGenerate interface {
Token(data *GenerateBasic, isGenRefresh bool) (access, refresh string, err error)
}
)