Skip to content

Commit

Permalink
Merge pull request #146 from Team-Umbba/feat/#145-add_closer_question…
Browse files Browse the repository at this point in the history
…_image

[FEAT] 가까워지기 질문에 이미지 추가
  • Loading branch information
ddongseop authored Apr 2, 2024
2 parents dd7c42b + 82fc043 commit 3afd9fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ public class TodayCloserQnAResponseDto {
private String myChoice;
private String opponentChoice;

private String imgUrl;

public static TodayCloserQnAResponseDto of(CloserQnA closerQna, int responseCase, boolean isMeChild) {

CloserQuestion closerQuestion = closerQna.getCloserQuestion();
Expand Down Expand Up @@ -65,6 +67,7 @@ public static TodayCloserQnAResponseDto of(CloserQnA closerQna, int responseCase
.choiceAnswer2(closerQuestion.getChoiceAnswer2())
.myChoice(myChoice)
.opponentChoice(opponentChoice)
.imgUrl(closerQuestion.getImgUrl())
.build();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,7 @@ public class CloserQuestion extends AuditingTimeEntity {

@Column(nullable = false)
private String choiceAnswer2;

@Column(columnDefinition = "TEXT")
private String imgUrl;
}

0 comments on commit 3afd9fc

Please sign in to comment.