Feat: add session
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user