Explorar o código

add attachments

visuddhinanda %!s(int64=2) %!d(string=hai) anos
pai
achega
897537df4e
Modificáronse 1 ficheiros con 9 adicións e 1 borrados
  1. 9 1
      dashboard/src/components/template/Wbw/WbwWord.tsx

+ 9 - 1
dashboard/src/components/template/Wbw/WbwWord.tsx

@@ -38,6 +38,7 @@ export type TFieldName =
   | "bookMarkColor"
   | "bookMarkText"
   | "locked"
+  | "attachments"
   | "confidence";
 
 export interface IWbwField {
@@ -51,6 +52,13 @@ export enum WbwStatus {
   apply = 5,
   manual = 7,
 }
+
+export interface IWbwAttachment {
+  id: string;
+  content_type: string;
+  size: number;
+  title: string;
+}
 export interface WbwElement<R> {
   value: R;
   status: WbwStatus;
@@ -79,7 +87,7 @@ export interface IWbw {
   bookMarkText?: WbwElement<string | null>;
   locked?: boolean;
   confidence: number;
-  attachments?: UploadFile[];
+  attachments?: IWbwAttachment[];
   hasComment?: boolean;
 }
 export interface IWbwFields {