35 lines
904 B
TypeScript
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
|
|
});
|
|
}
|