Feat: add login

This commit is contained in:
2025-12-07 12:15:48 +08:00
parent fb1c47b321
commit 2eb8a18c40
11 changed files with 265 additions and 7 deletions

View File

@@ -9,11 +9,16 @@ import (
type Database interface {
GetSession(
ctx context.Context,
userId string,
loginToken string,
) (models.Session, error)
UpdateRefreshToken(
ctx context.Context,
userId string,
) (models.Session, error)
UpdateLoginToken(
ctx context.Context,
userId string,
) (string, error)
}