فهرست منبع

IAttachmentRequest type->content_type

visuddhinanda 2 سال پیش
والد
کامیت
fe40d1c414
1فایلهای تغییر یافته به همراه4 افزوده شده و 10 حذف شده
  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 {
 export interface IAttachmentRequest {
-  uid: string;
-  name?: string;
-  size?: number;
-  type: string;
+  id: string;
+  name: string;
+  size: number;
+  content_type: string;
   url: string;
   url: string;
 }
 }
 export interface IAttachmentResponse {
 export interface IAttachmentResponse {