Files
learn-languages/src/modules/dictionary/dictionary-repository-dto.ts
2026-01-13 23:02:07 +08:00

39 lines
853 B
TypeScript

import { TSharedItem } from "@/shared";
export type CreateDictionaryLookUpInputDto = {
userId?: string;
text: string;
queryLang: string;
definitionLang: string;
dictionaryItemId?: number;
};
export type SelectLastLookUpResultOutputDto = TSharedItem & {id: number} | null;
export type CreateDictionaryItemInputDto = {
standardForm: string;
queryLang: string;
definitionLang: string;
};
export type CreateDictionaryEntryInputDto = {
itemId: number;
ipa?: string;
definition: string;
partOfSpeech?: string;
example: string;
};
export type CreateDictionaryEntryWithoutItemIdInputDto = {
ipa?: string;
definition: string;
partOfSpeech?: string;
example: string;
};
export type SelectLastLookUpResultInputDto = {
text: string,
queryLang: string,
definitionLang: string;
};