Browse Source

add ISentenceListResponse

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

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

@@ -169,6 +169,11 @@ export interface ISentenceResponse {
   message: string;
   data: ISentenceData;
 }
+export interface ISentenceListResponse {
+  ok: boolean;
+  message: string;
+  data: { rows: ISentenceData[]; count: number };
+}
 export interface ISentenceNewRequest {
   sentences: ISentenceDiffData[];
   channel?: string;