Explorar el Código

add created_at

visuddhinanda hace 2 años
padre
commit
ecffa1905b
Se han modificado 1 ficheros con 11 adiciones y 0 borrados
  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 };
+}