| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- import type { IStudio } from "../auth/Studio"
- import type { IUser } from "../auth/User"
- import type { ICaseListData } from "../dict/CaseList"
- export interface IDictRequest {
- id?: number;
- word: string;
- type?: string | null;
- grammar?: string | null;
- mean?: string | null;
- parent?: string | null;
- parent2?: string | null;
- note?: string | null;
- factors?: string | null;
- factormean?: string | null;
- confidence: number;
- dict_id?: string;
- dict_name?: string;
- language?: string;
- creator_id?: number;
- editor?: IUser;
- studio?: IStudio;
- status?: number;
- updated_at?: string;
- }
- export interface IUserDictCreate {
- data: string;
- view: string;
- }
- export interface IDictResponse {
- ok: boolean;
- message: string;
- data: number[];
- }
- export interface IDictInfo {
- id: string;
- name: string;
- shortname: string;
- }
- export interface IApiResponseDictData {
- id: string;
- sn?: number;
- word: string;
- type?: string | null;
- grammar?: string | null;
- mean?: string | null;
- parent?: string | null;
- note?: string | null;
- factors?: string | null;
- factormean?: string | null;
- source: string | null;
- language: string;
- dict?: IDictInfo;
- dict_id: string;
- dict_name?: string;
- dict_shortname?: string;
- shortname?: string;
- confidence: number;
- creator_id: number;
- updated_at: string;
- exp?: number;
- editor?: IUser;
- status?: number;
- count?: number;
- created_at?: string;
- }
- export interface IApiResponseDict {
- ok: boolean;
- message: string;
- data: IApiResponseDictData;
- }
- export interface IApiResponseDictList {
- ok: boolean;
- message: string;
- data: {
- rows: IApiResponseDictData[];
- count: number;
- time?: number;
- };
- }
- export interface IVocabularyData {
- word: string;
- count: number;
- meaning?: string;
- strlen: number;
- }
- export interface IVocabularyListResponse {
- ok: boolean;
- message: string;
- data: {
- rows: IVocabularyData[];
- count: number;
- };
- }
- export interface IUserDictDeleteRequest {
- id: string;
- }
- export interface ICaseItem {
- word: string;
- case: ICaseListData[];
- count: number;
- }
- export interface ICaseListResponse {
- ok: boolean;
- message: string;
- data: {
- rows: ICaseItem[];
- count: number;
- };
- }
- export interface IFirstMeaning {
- word?: string;
- meaning?: string;
- }
- export interface IDictFirstMeaningResponse {
- ok: boolean;
- 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;
- }
|