Browse Source

add ResAttachment

visuddhinanda 1 year ago
parent
commit
3a18565fb7
1 changed files with 12 additions and 0 deletions
  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 };
+}