Feat: session table and interface

This commit is contained in:
Grail Finder
2025-07-02 16:29:52 +03:00
parent 3e0d24f5f8
commit 8d159baad7
6 changed files with 38 additions and 15 deletions

9
repos/session.go Normal file
View File

@ -0,0 +1,9 @@
package repos
import "gralias/models"
type SessionsRepo interface {
SessionByToken(token string) (*models.Session, error)
SessionCreate(req *models.Session) error
SessionUpdateLifetime(minutes uint32) error
}