first commit
This commit is contained in:
17
pkg/auth/generate.go
Normal file
17
pkg/auth/generate.go
Normal file
@ -0,0 +1,17 @@
|
||||
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)
|
||||
}
|
||||
)
|
Reference in New Issue
Block a user