This commit is contained in:
2026-02-02 23:57:01 +08:00
parent 76749549ff
commit eaf97b8279
67 changed files with 106 additions and 134 deletions

View File

@@ -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";

View File

@@ -1,4 +1,4 @@
import { TSharedItem } from "@/shared";
import { TSharedItem } from "@/shared/dictionary-type";
export type RepoInputCreateDictionaryLookUp = {
userId?: string;

View File

@@ -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({

View File

@@ -1,4 +1,4 @@
import { TSharedItem } from "@/shared";
import { TSharedItem } from "@/shared/dictionary-type";
export type ServiceInputLookUp = {
text: string,

View File

@@ -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";

View File

@@ -1,2 +0,0 @@
export * from "./dictionary-action";
export * from "./dictionary-action-dto";