Explorar o código

IAttachmentRequest type->content_type

visuddhinanda %!s(int64=3) %!d(string=hai) anos
pai
achega
fe40d1c414
Modificáronse 1 ficheiros con 4 adicións e 10 borrados
  1. 4 10
      dashboard/src/components/api/Attachments.ts

+ 4 - 10
dashboard/src/components/api/Attachments.ts

@@ -1,14 +1,8 @@
-/*
-            'name' => $filename,
-            'size' => $file->getSize(),
-            'type' => $file->getMimeType(),
-            'url' => $filename,
-*/
 export interface IAttachmentRequest {
-  uid: string;
-  name?: string;
-  size?: number;
-  type: string;
+  id: string;
+  name: string;
+  size: number;
+  content_type: string;
   url: string;
 }
 export interface IAttachmentResponse {