File tree Expand file tree Collapse file tree
src/main/java/UMC_7th/Closit/domain/post Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ())
Original file line number Diff line number Diff 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 ;
You canโt perform that action at this time.
0 commit comments