10 lines
348 B
TypeScript
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>;
|
|
}
|