diff options
| author | joonhoekim <26rote@gmail.com> | 2025-11-28 14:13:46 +0900 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-11-28 14:13:46 +0900 |
| commit | 24e0b8c83f7d68156e5a63ba85a541c04036f00b (patch) | |
| tree | deac3a6385b959ced9abed7de134938a609cd68f /lib/dolce/actions.ts | |
| parent | 9cda8482660a87fd98c9ee43f507d75ff75b4e23 (diff) | |
(김준회) dolce: API 추가건 대응 처리(상세도면 및 파일 삭제 기능-Standby 상태)
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 일괄 업로드 관련 // ============================================================================ |
