Feat: add session

This commit is contained in:
ytshih committed 2025-12-07 11:27:54 +08:00
1 parent 9c30bc009d
commit fb1c47b321
12 files changed
+400 -12

No files matched your search

+15
View File
@@ -1,4 +1,19 @@
package interfaces
import (
"context"
"gitea.konchin.com/go2025/backend/models"
)
type Database interface {
GetSession(
ctx context.Context,
userId string,
) (models.Session, error)
UpdateRefreshToken(
ctx context.Context,
userId string,
) (models.Session, error)
}