|
@@ -1,36 +1,56 @@
|
|
|
export interface ITermDataRequest {
|
|
export interface ITermDataRequest {
|
|
|
- id: number;
|
|
|
|
|
- word: string;
|
|
|
|
|
- tag: string;
|
|
|
|
|
- meaning: string;
|
|
|
|
|
- other_meaning: string;
|
|
|
|
|
- note: string;
|
|
|
|
|
- channal: string;
|
|
|
|
|
- language: string;
|
|
|
|
|
|
|
+ id: number;
|
|
|
|
|
+ word: string;
|
|
|
|
|
+ tag: string;
|
|
|
|
|
+ meaning: string;
|
|
|
|
|
+ other_meaning: string;
|
|
|
|
|
+ note: string;
|
|
|
|
|
+ channal: string;
|
|
|
|
|
+ language: string;
|
|
|
}
|
|
}
|
|
|
export interface ITermDataResponse {
|
|
export interface ITermDataResponse {
|
|
|
- id: number;
|
|
|
|
|
- guid: string;
|
|
|
|
|
- word: string;
|
|
|
|
|
- tag: string;
|
|
|
|
|
- meaning: string;
|
|
|
|
|
- other_meaning: string;
|
|
|
|
|
- note: string;
|
|
|
|
|
- channal: string;
|
|
|
|
|
- language: string;
|
|
|
|
|
- created_at: string;
|
|
|
|
|
- updated_at: string;
|
|
|
|
|
|
|
+ id: number;
|
|
|
|
|
+ guid: string;
|
|
|
|
|
+ word: string;
|
|
|
|
|
+ tag: string;
|
|
|
|
|
+ meaning: string;
|
|
|
|
|
+ other_meaning: string;
|
|
|
|
|
+ note: string;
|
|
|
|
|
+ channal: string;
|
|
|
|
|
+ language: string;
|
|
|
|
|
+ created_at: string;
|
|
|
|
|
+ updated_at: string;
|
|
|
}
|
|
}
|
|
|
export interface ITermResponse {
|
|
export interface ITermResponse {
|
|
|
- ok: boolean;
|
|
|
|
|
- message: string;
|
|
|
|
|
- data: ITermDataResponse;
|
|
|
|
|
|
|
+ ok: boolean;
|
|
|
|
|
+ message: string;
|
|
|
|
|
+ data: ITermDataResponse;
|
|
|
}
|
|
}
|
|
|
export interface ITermListResponse {
|
|
export interface ITermListResponse {
|
|
|
- ok: boolean;
|
|
|
|
|
- message: string;
|
|
|
|
|
- data: {
|
|
|
|
|
- rows: ITermDataResponse[];
|
|
|
|
|
- count: number;
|
|
|
|
|
- };
|
|
|
|
|
|
|
+ ok: boolean;
|
|
|
|
|
+ message: string;
|
|
|
|
|
+ data: {
|
|
|
|
|
+ rows: ITermDataResponse[];
|
|
|
|
|
+ count: number;
|
|
|
|
|
+ };
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+interface IMeaningCount {
|
|
|
|
|
+ meaning: string;
|
|
|
|
|
+ count: number;
|
|
|
|
|
+}
|
|
|
|
|
+interface IStudioChannel {
|
|
|
|
|
+ name: string;
|
|
|
|
|
+ uid: string;
|
|
|
|
|
+}
|
|
|
|
|
+export interface ITermCreate {
|
|
|
|
|
+ word: string;
|
|
|
|
|
+ meaningCount: IMeaningCount[];
|
|
|
|
|
+ studioChannels: IStudioChannel[];
|
|
|
|
|
+ language: string;
|
|
|
|
|
+}
|
|
|
|
|
+export interface ITermCreateResponse {
|
|
|
|
|
+ ok: boolean;
|
|
|
|
|
+ message: string;
|
|
|
|
|
+ data: ITermCreate;
|
|
|
}
|
|
}
|