Parcourir la source

add ResAttachment

visuddhinanda il y a 1 an
Parent
commit
3a18565fb7
1 fichiers modifiés avec 12 ajouts et 0 suppressions
  1. 12 0
      dashboard-v4/dashboard/src/components/api/Attachments.ts

+ 12 - 0
dashboard-v4/dashboard/src/components/api/Attachments.ts

@@ -24,3 +24,15 @@ export interface IAttachmentListResponse {
   message: string;
   data: { rows: IAttachmentRequest[]; count: number };
 }
+
+export interface IResAttachmentData {
+  uid: string;
+  sentence_id: string;
+  attachment_id: string;
+  attachment: IAttachmentRequest;
+}
+export interface IResAttachmentListResponse {
+  ok: boolean;
+  message: string;
+  data: { rows: IResAttachmentData[]; count: number };
+}