Skip to content

Commit 7a89438

Browse files
authored
Merge pull request #349 from prgrms-web-devcourse-final-project/develop
뉴스 댓글 응답에 댓글 작성자 아이디 추가 (#348)
2 parents 571ac5d + 53c3070 commit 7a89438

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)