2025-08-21 12:05:19 +02:00

10 lines
348 B
TypeScript

import { IAccount } from "../models/account";
import { ISession } from "../models/session";
export interface ISessionService {
create(account: IAccount): Promise<ISession>;
getBy(filter: (account: IAccount) => boolean): Promise<ISession[]>;
getById(sessionId: string): Promise<ISession | null>;
remove(sessionId: string): Promise<void>;
}