2
0
Эх сурвалжийг харах

add sn in IApiResponseDictData

visuddhinanda 1 жил өмнө
parent
commit
5090315da7

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

@@ -39,6 +39,7 @@ export interface IDictInfo {
 }
 export interface IApiResponseDictData {
   id: string;
+  sn?: number;
   word: string;
   type?: string | null;
   grammar?: string | null;
@@ -60,6 +61,8 @@ export interface IApiResponseDictData {
   exp?: number;
   editor?: IUser;
   status?: number;
+  count?: number;
+  created_at?: string;
 }
 export interface IApiResponseDict {
   ok: boolean;
@@ -118,3 +121,21 @@ export interface IDictFirstMeaningResponse {
   message: string;
   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;
+}