| 123456789101112131415161718192021222324252627282930313233343536373839 |
- import { IUser } from "../auth/User";
- export interface INotificationPutResponse {
- ok: boolean;
- data: {
- unread: number;
- };
- message: string;
- }
- export interface INotificationListResponse {
- ok: boolean;
- data: INotificationListData;
- message: string;
- }
- export interface INotificationListData {
- rows: INotificationData[];
- count: number;
- unread: number;
- }
- interface INotificationData {
- id: string;
- from: IUser;
- to: IUser;
- url?: string;
- content: string;
- content_type: string;
- res_type: string;
- res_id: string;
- status: string;
- deleted_at?: string;
- created_at: string;
- updated_at: string;
- }
- export interface INotificationRequest {
- status: string;
- }
|