Przeglądaj źródła

:construction: create

visuddhinanda 3 lat temu
rodzic
commit
7c16a1d49b
1 zmienionych plików z 35 dodań i 0 usunięć
  1. 35 0
      dashboard/src/components/api/Term.ts

+ 35 - 0
dashboard/src/components/api/Term.ts

@@ -0,0 +1,35 @@
+export interface ITermDataRequest {
+	id: number;
+	word: string;
+	tag: string;
+	meaning: string;
+	other_meaning: string;
+	note: string;
+	channal: string;
+	language: string;
+}
+export interface ITermDataResponse {
+	id: number;
+	word: string;
+	tag: string;
+	meaning: string;
+	other_meaning: string;
+	note: string;
+	channal: string;
+	language: string;
+	created_at: string;
+	updated_at: string;
+}
+export interface ITermResponse {
+	ok: boolean;
+	message: string;
+	data: ITermDataResponse;
+}
+export interface ITermListResponse {
+	ok: boolean;
+	message: string;
+	data: {
+		rows: ITermDataResponse[];
+		count: number;
+	};
+}