Skip to content

Commit 1a1c4a1

Browse files
authored
Merge pull request #294 from UMC-Closit/fix/#293-post-reply
fix: ๊ฒŒ์‹œ๊ธ€ ๋ถ€๋ชจ ๋Œ“๊ธ€ ID response ํฌํ•จ
2 parents 5366b9c + 79288fe commit 1a1c4a1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

โ€Žsrc/main/java/UMC_7th/Closit/domain/post/converter/CommentConverter.javaโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ public static CommentResponseDTO.CreateCommentResultDTO createCommentResponseDTO
3232
public static CommentResponseDTO.CommentPreviewDTO commentPreviewDTO(Comment comment) {
3333
return CommentResponseDTO.CommentPreviewDTO.builder()
3434
.commentId(comment.getId())
35+
.parentCommentId(comment.getParent() != null ? comment.getParent().getId() : null)
3536
.clositId(comment.getUser().getClositId())
3637
.content(comment.getContent())
3738
.isParent(comment.isParent())

โ€Žsrc/main/java/UMC_7th/Closit/domain/post/dto/CommentResponseDTO.javaโ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public static class CreateCommentResultDTO { // ๋Œ“๊ธ€ ์ƒ์„ฑ ์‘๋‹ต
2828
public static class CommentPreviewDTO { // ๋Œ“๊ธ€ ์กฐํšŒ
2929
private String clositId;
3030
private Long commentId;
31+
private Long parentCommentId;
3132
private String content;
3233
private boolean isParent;
3334
private List<CommentPreviewDTO> replies;

0 commit comments

Comments
ย (0)