Browse Source

add sn in IApiResponseDictData

visuddhinanda 1 year ago
parent
commit
5090315da7
1 changed files with 21 additions and 0 deletions
  1. 21 0
      dashboard-v4/dashboard/src/components/api/Dict.ts

+ 21 - 0
dashboard-v4/dashboard/src/components/api/Dict.ts

@@ -39,6 +39,7 @@ export interface IDictInfo {
 }
 }
 export interface IApiResponseDictData {
 export interface IApiResponseDictData {
   id: string;
   id: string;
+  sn?: number;
   word: string;
   word: string;
   type?: string | null;
   type?: string | null;
   grammar?: string | null;
   grammar?: string | null;
@@ -60,6 +61,8 @@ export interface IApiResponseDictData {
   exp?: number;
   exp?: number;
   editor?: IUser;
   editor?: IUser;
   status?: number;
   status?: number;
+  count?: number;
+  created_at?: string;
 }
 }
 export interface IApiResponseDict {
 export interface IApiResponseDict {
   ok: boolean;
   ok: boolean;
@@ -118,3 +121,21 @@ export interface IDictFirstMeaningResponse {
   message: string;
   message: string;
   data: IFirstMeaning[];
   data: IFirstMeaning[];
 }
 }
+
+export interface IPreferenceListResponse {
+  ok: boolean;
+  message: string;
+  data: { rows: IApiResponseDictData[]; count: number };
+}
+export interface IPreferenceRequest {
+  id?: string;
+  word?: string;
+  factors?: string | null;
+  parent?: string | null;
+  confidence?: number;
+}
+export interface IPreferenceResponse {
+  ok: boolean;
+  message: string;
+  data: IApiResponseDictData;
+}