Skip to content

Commit 85e64fc

Browse files
committed
feat: 댓글 삭제 기능 구현
1 parent b5aca08 commit 85e64fc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/java/com/back/domain/post/comment/controller/CommentController.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ public RsData<CommentResponseDto> updateComment(
9292
return RsData.successOf(commentService.updateComment(postId, commentId, reqBody)); // code=200, message="success"
9393
}
9494

95+
/**
96+
* 댓글 삭제 API
97+
* @param postId 댓글이 작성된 게시글 ID
98+
* @param commentId 삭제할 댓글 ID
99+
* @return 삭제 성공 메시지
100+
*/
95101
@DeleteMapping("/{commentId}")
96102
@Operation(summary = "댓글 삭제")
97103
public RsData<Void> deleteComment(

0 commit comments

Comments
 (0)