Skip to content

Commit

Permalink
Merge pull request #103 from Team-baebae/feature/answer/#39
Browse files Browse the repository at this point in the history
chore: Answer 질문자 실제 닉네임 추가
  • Loading branch information
jihyo-j authored May 21, 2024
2 parents 7cbb690 + 5f71c65 commit d419893
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public class AnswerDetailResponse {
private Long memberId;
private String content;
private String nickname;
private String senderNickname;
private Boolean profileOnOff;
private String linkAttachments;
private String musicName;
Expand All @@ -24,7 +25,7 @@ public class AnswerDetailResponse {


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

Expand All @@ -35,6 +36,7 @@ public AnswerDetailResponse(Long answerId, Long questionId, String questionConte
this.memberId = memberId;
this.content = content;
this.nickname = nickname;
this.senderNickname = senderNickname;
this.profileOnOff = profileOnOff;
this.linkAttachments = linkAttachments;
this.musicName = musicName;
Expand All @@ -45,10 +47,10 @@ public AnswerDetailResponse(Long answerId, Long questionId, String questionConte
}

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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public AnswerDetailResponse toDomain(Answer answer) {
member.getId(),
answer.getContent(),
answer.getNickname(),
question.getSender().getNickname(),
answer.isProfileOnOff(),
answer.getLinkAttachments(),
music != null ? music.getMusicName() : null,
Expand Down

0 comments on commit d419893

Please sign in to comment.