Explorar o código

add created_at

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
ecffa1905b
Modificáronse 1 ficheiros con 11 adicións e 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 };
+}