first commit

This commit is contained in:
2024-07-23 10:23:43 +08:00
commit 7b4c2521a3
126 changed files with 15931 additions and 0 deletions

17
pkg/auth/generate.go Normal file
View 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)
}
)