Skip to content

Commit a265d80

Browse files
committed
Feat : 응답에 댓글 작성자 아이디 추가
1 parent cafece7 commit a265d80

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

back/src/main/java/com/back/domain/news/comment/dto/CommentResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ public class CommentResponse {
1010
private final Long id;
1111
private final String content;
1212
private final String author;
13+
private final Long memberId;
1314
private final LocalDateTime createdDate;
1415
private final LocalDateTime modifiedDate;
1516

1617
public CommentResponse(NewsComment newsComment) {
1718
this.id = newsComment.getId();
1819
this.content = newsComment.getContent();
1920
this.author = newsComment.getMember().getName();
21+
this.memberId = newsComment.getMember().getId();
2022
this.createdDate = newsComment.getCreateDate();
2123
this.modifiedDate = newsComment.getModifyDate();
2224
}

0 commit comments

Comments
 (0)