Skip to content

Commit

Permalink
chore: 질문 senderNickname 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jihyo-j committed May 18, 2024
1 parent 0b26647 commit 0f58e14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class AnswerDetailResponse {
private String questionContent;
private Long memberId;
private String content;
private String memberNickname;
private String senderNickname;
private String nickname;
private Boolean profileOnOff;
private String linkAttachments;
Expand All @@ -25,7 +25,7 @@ public class AnswerDetailResponse {


public AnswerDetailResponse(Long answerId, Long questionId, String questionContent, Long memberId,
String content, String memberNickname, String nickname, Boolean profileOnOff,
String content, String senderNickname, String nickname, Boolean profileOnOff,
String linkAttachments, String musicName, String musicSinger, String musicAudioUrl,
String imageUrl, LocalDateTime createdDate) {

Expand All @@ -35,7 +35,7 @@ public AnswerDetailResponse(Long answerId, Long questionId, String questionConte
this.questionContent = questionContent;
this.memberId = memberId;
this.content = content;
this.memberNickname = memberNickname;
this.senderNickname = senderNickname;
this.nickname = nickname;
this.profileOnOff = profileOnOff;
this.linkAttachments = linkAttachments;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public AnswerDetailResponse toDomain(Answer answer) {
question.getContent(),
member.getId(),
answer.getContent(),
member.getNickname(),
question.getSender().getNickname(),
answer.getNickname(),
answer.isProfileOnOff(),
answer.getLinkAttachments(),
Expand Down

0 comments on commit 0f58e14

Please sign in to comment.