diff options
Diffstat (limited to 'lib/dolce/actions.ts')
| -rw-r--r-- | lib/dolce/actions.ts | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/lib/dolce/actions.ts b/lib/dolce/actions.ts index 5590ce8c..501c6cb0 100644 --- a/lib/dolce/actions.ts +++ b/lib/dolce/actions.ts @@ -138,7 +138,7 @@ export interface FileInfoItem { } export interface DetailDwgEditRequest { - Mode: "ADD" | "MOD"; + Mode: "ADD" | "MOD" | "DEL"; Status: string; RegisterId: number; ProjectNo: string; @@ -471,6 +471,28 @@ export async function fetchVendorProjects(): Promise< } } +/** + * 6. 파일 삭제 (FileInfoDeleteEdit) + */ +export async function deleteFileInfo(params: { + fileId: string; + uploadId: string; +}): Promise<number> { + try { + const response = await dolceApiCall<{ + FileInfoDeleteEditResult: number; + }>("FileInfoDeleteEdit", { + FileId: params.fileId, + UploadId: params.uploadId, + }); + + return response.FileInfoDeleteEditResult; + } catch (error) { + console.error("파일 삭제 실패:", error); + throw error; + } +} + // ============================================================================ // B4 일괄 업로드 관련 // ============================================================================ |
