Просмотр исходного кода

add sn in IApiResponseDictData

visuddhinanda 1 год назад
Родитель
Сommit
5090315da7
1 измененных файлов с 21 добавлено и 0 удалено
  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 {
   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;
+}