From ba8cd44a0ed2c613a5f2cee06bfc9bd0f61f21c7 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Fri, 7 Nov 2025 08:39:04 +0000 Subject: (최겸) 입찰/견적 수정사항 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/general-contracts/detail/general-contract-documents.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/general-contracts/detail/general-contract-documents.tsx') diff --git a/lib/general-contracts/detail/general-contract-documents.tsx b/lib/general-contracts/detail/general-contract-documents.tsx index b0f20e7f..ee2af8a2 100644 --- a/lib/general-contracts/detail/general-contract-documents.tsx +++ b/lib/general-contracts/detail/general-contract-documents.tsx @@ -22,7 +22,8 @@ import { uploadContractAttachment, getContractAttachments, getContractAttachmentForDownload, - deleteContractAttachment + deleteContractAttachment, + saveContractAttachmentComment } from '../service' import { downloadFile } from '@/lib/file-download' @@ -138,7 +139,13 @@ export function ContractDocuments({ contractId, userId, readOnly = false }: Cont if (!editingComment) return try { - // TODO: API 호출로 댓글 저장 + await saveContractAttachmentComment( + editingComment.id, + contractId, + editingComment.type, + commentText, + Number(userId) + ) toast.success('댓글이 저장되었습니다.') setEditingComment(null) setCommentText('') -- cgit v1.2.3