Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public record CommentAllResponse(
Long id,
String content,
String authorName,
LocalDateTime createdAt
LocalDateTime createdAt,
Long memberId
) {


Expand All @@ -19,7 +20,8 @@ public static CommentAllResponse from(PostComment comment) {
comment.getId(),
comment.getContent(),
comment.getAuthorName(),
comment.getCreateDate()
comment.getCreateDate(),
comment.getAuthorId()
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public String getAuthorName() {
return member.getName();
}

public Long getAuthorId() {
return member.getId();
}

@Builder
public PostComment(Post post, String content, Member member, String role) {
this.post = post;
Expand Down