Browse Source

add contentType?: TContentType;

visuddhinanda 2 years ago
parent
commit
f41817ccab
1 changed files with 3 additions and 0 deletions
  1. 3 0
      dashboard/src/components/api/Corpus.ts

+ 3 - 0
dashboard/src/components/api/Corpus.ts

@@ -1,6 +1,7 @@
 import { IStudio } from "../auth/StudioName";
 import { IStudio } from "../auth/StudioName";
 import { IUser } from "../auth/User";
 import { IUser } from "../auth/User";
 import { IChannel } from "../channel/Channel";
 import { IChannel } from "../channel/Channel";
+import { TContentType } from "../comment/CommentCreate";
 import { ISuggestionCount, IWidgetSentEditInner } from "../template/SentEdit";
 import { ISuggestionCount, IWidgetSentEditInner } from "../template/SentEdit";
 import { TChannelType } from "./Channel";
 import { TChannelType } from "./Channel";
 import { TagNode } from "./Tag";
 import { TagNode } from "./Tag";
@@ -144,6 +145,7 @@ export interface ISentenceRequest {
   wordEnd: number;
   wordEnd: number;
   channel: string;
   channel: string;
   content: string;
   content: string;
+  contentType?: TContentType;
   prEditor?: string;
   prEditor?: string;
   prId?: string;
   prId?: string;
   prEditAt?: string;
   prEditAt?: string;
@@ -156,6 +158,7 @@ export interface ISentenceData {
   word_start: number;
   word_start: number;
   word_end: number;
   word_end: number;
   content: string;
   content: string;
+  content_type?: TContentType;
   html: string;
   html: string;
   editor: IUser;
   editor: IUser;
   channel: IChannel;
   channel: IChannel;