...
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { TSharedItem } from "@/shared";
|
||||
import { TSharedItem } from "@/shared/dictionary-type";
|
||||
import { LENGTH_MAX_DICTIONARY_TEXT, LENGTH_MAX_LANGUAGE, LENGTH_MIN_DICTIONARY_TEXT, LENGTH_MIN_LANGUAGE } from "@/shared/constant";
|
||||
import { generateValidator } from "@/utils/validate";
|
||||
import z from "zod";
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TSharedItem } from "@/shared";
|
||||
import { TSharedItem } from "@/shared/dictionary-type";
|
||||
|
||||
export type RepoInputCreateDictionaryLookUp = {
|
||||
userId?: string;
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
RepoInputSelectLastLookUpResult,
|
||||
RepoOutputSelectLastLookUpResult,
|
||||
} from "./dictionary-repository-dto";
|
||||
import prisma from "@/lib/db";
|
||||
import { prisma } from "@/lib/db";
|
||||
|
||||
export async function repoSelectLastLookUpResult(dto: RepoInputSelectLastLookUpResult): Promise<RepoOutputSelectLastLookUpResult> {
|
||||
const result = await prisma.dictionaryLookUp.findFirst({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TSharedItem } from "@/shared";
|
||||
import { TSharedItem } from "@/shared/dictionary-type";
|
||||
|
||||
export type ServiceInputLookUp = {
|
||||
text: string,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { executeDictionaryLookup } from "@/lib/bigmodel/dictionary";
|
||||
import { executeDictionaryLookup } from "@/lib/bigmodel/dictionary/orchestrator";
|
||||
import { repoCreateLookUp, repoCreateLookUpWithItemAndEntries, repoSelectLastLookUpResult } from "./dictionary-repository";
|
||||
import { ServiceInputLookUp } from "./dictionary-service-dto";
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
export * from "./dictionary-action";
|
||||
export * from "./dictionary-action-dto";
|
||||
Reference in New Issue
Block a user