Files
frontend/apps/dc/src/entities/datalibrary/api/processing-service.ts
T
2025-10-17 11:52:42 +09:00

35 lines
904 B
TypeScript

import { dcClient } from "@/shared/api";
import { ENDPOINT } from "@/shared/config";
// 이미지 경로 저장
export async function saveImagePath(params: {
fileSn: string;
folderPath: string;
totalPages: number;
}): Promise<void> {
await dcClient.post(`${ENDPOINT.DC_SERVICE.CATEGORY}/saveImgPath`, {
fileSn: params.fileSn,
folderPath: params.folderPath,
totalPages: params.totalPages
});
}
// PDF 경로 저장
export async function savePdfPath(params: {
fileSn: string;
pdfPath: string;
}): Promise<void> {
await dcClient.post(`${ENDPOINT.DC_SERVICE.CATEGORY}/savePdfPath`, {
fileSn: params.fileSn,
pdfPath: params.pdfPath
});
}
// 임베딩 결과 저장
export async function saveEmbeddingResult(params: {
fileSn: string;
}): Promise<void> {
await dcClient.post(`${ENDPOINT.DC_SERVICE.CATEGORY}/saveEmbeddingResult`, {
fileSn: params.fileSn
});
}