think/packages/domains/lib/services/IMessageService.d.ts

17 lines
589 B
TypeScript
Raw Normal View History

2022-03-11 05:57:55 +00:00
import { IUser, IMessage, IPagination } from "../models";
export declare abstract class IMessageService {
abstract getUnreadMessage(pagination: IPagination, user?: IUser): Promise<{
data: IMessage[];
total: number;
}>;
abstract getReadMessage(pagination: IPagination, user?: IUser): Promise<{
data: IMessage[];
total: number;
}>;
abstract getAllMessage(pagination: IPagination, user?: IUser): Promise<{
data: IMessage[];
total: number;
}>;
abstract readMessage(id: IMessage["id"], user?: IUser): Promise<void>;
}