Feat: add session

This commit is contained in:
2025-12-07 11:27:54 +08:00
parent 9c30bc009d
commit fb1c47b321
12 changed files with 400 additions and 12 deletions

6
types/definition.go Normal file
View File

@@ -0,0 +1,6 @@
package types
type (
AccessToken string
RefreshToken string
)

10
types/errors.go Normal file
View File

@@ -0,0 +1,10 @@
package types
import "fmt"
var (
ContextNotExistError = fmt.Errorf("context not exist")
WrongFormatError = fmt.Errorf("wrong format")
HTTPRequestFailedError = fmt.Errorf("http request failed")
)