visuddhinanda 2 лет назад
Родитель
Сommit
ecffa1905b
1 измененных файлов с 11 добавлено и 0 удалено
  1. 11 0
      dashboard/src/components/api/Attachments.ts

+ 11 - 0
dashboard/src/components/api/Attachments.ts

@@ -6,9 +6,20 @@ export interface IAttachmentRequest {
   size: number;
   content_type: string;
   url: string;
+  created_at?: string;
+  updated_at?: string;
+}
+export interface IAttachmentUpdate {
+  title: string;
 }
 export interface IAttachmentResponse {
   ok: boolean;
   message: string;
   data: IAttachmentRequest;
 }
+
+export interface IAttachmentListResponse {
+  ok: boolean;
+  message: string;
+  data: { rows: IAttachmentRequest[]; count: number };
+}