...
This commit is contained in:
@@ -1 +0,0 @@
|
||||
export * from './auth-action';
|
||||
@@ -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";
|
||||
@@ -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) {
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
export * from './folder-aciton';
|
||||
export * from './folder-action-dto';
|
||||
@@ -1,2 +0,0 @@
|
||||
export * from './translator-action';
|
||||
export * from './translator-action-dto';
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TSharedTranslationResult } from "@/shared";
|
||||
import { TSharedTranslationResult } from "@/shared/translator-type";
|
||||
import {
|
||||
LENGTH_MAX_LANGUAGE,
|
||||
LENGTH_MIN_LANGUAGE,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { TSharedTranslationResult } from "@/shared";
|
||||
import { TSharedTranslationResult } from "@/shared/translator-type";
|
||||
|
||||
export type ServiceInputTranslateText = {
|
||||
sourceText: string;
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user