mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 05:11:34 +00:00
16 lines
427 B
Go
16 lines
427 B
Go
package user_session
|
|
|
|
import (
|
|
"context"
|
|
"tercul/internal/domain"
|
|
)
|
|
|
|
// User_sessionRepository defines CRUD methods specific to User_session.
|
|
type User_sessionRepository interface {
|
|
domain.BaseRepository[domain.UserSession]
|
|
|
|
GetByToken(ctx context.Context, token string) (*domain.UserSession, error)
|
|
GetByUserID(ctx context.Context, userID uint) ([]domain.UserSession, error)
|
|
DeleteExpired(ctx context.Context) (error)
|
|
}
|