notification.ts 692 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { IUser } from "../auth/User";
  2. export interface INotificationPutResponse {
  3. ok: boolean;
  4. data: {
  5. unread: number;
  6. };
  7. message: string;
  8. }
  9. export interface INotificationListResponse {
  10. ok: boolean;
  11. data: INotificationListData;
  12. message: string;
  13. }
  14. export interface INotificationListData {
  15. rows: INotificationData[];
  16. count: number;
  17. unread: number;
  18. }
  19. interface INotificationData {
  20. id: string;
  21. from: IUser;
  22. to: IUser;
  23. url?: string;
  24. content: string;
  25. content_type: string;
  26. res_type: string;
  27. res_id: string;
  28. status: string;
  29. deleted_at?: string;
  30. created_at: string;
  31. updated_at: string;
  32. }
  33. export interface INotificationRequest {
  34. status: string;
  35. }