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 +0,0 @@
export * from './auth-action';

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

View File

@@ -1,4 +1,4 @@
import prisma from "@/lib/db";
import { prisma } from "@/lib/db";
import { RepoInputCreateFolder, RepoInputCreatePair, RepoInputUpdatePair } from "./folder-repository-dto";
export async function repoCreatePair(data: RepoInputCreatePair) {

View File

@@ -1,2 +0,0 @@
export * from './folder-aciton';
export * from './folder-action-dto';

View File

@@ -1,2 +0,0 @@
export * from './translator-action';
export * from './translator-action-dto';

View File

@@ -1,4 +1,4 @@
import { TSharedTranslationResult } from "@/shared";
import { TSharedTranslationResult } from "@/shared/translator-type";
import {
LENGTH_MAX_LANGUAGE,
LENGTH_MIN_LANGUAGE,

View File

@@ -3,7 +3,7 @@ import {
RepoInputSelectLatestTranslation,
RepoOutputSelectLatestTranslation,
} from "./translator-repository-dto";
import prisma from "@/lib/db";
import { prisma } from "@/lib/db";
export async function repoSelectLatestTranslation(
dto: RepoInputSelectLatestTranslation

View File

@@ -1,4 +1,4 @@
import { TSharedTranslationResult } from "@/shared";
import { TSharedTranslationResult } from "@/shared/translator-type";
export type ServiceInputTranslateText = {
sourceText: string;

View File

@@ -1,4 +1,4 @@
import { executeTranslation } from "@/lib/bigmodel/translator";
import { executeTranslation } from "@/lib/bigmodel/translator/orchestrator";
import { repoCreateTranslationHistory, repoSelectLatestTranslation } from "./translator-repository";
import { ServiceInputTranslateText, ServiceOutputTranslateText } from "./translator-service-dto";