Skip to content

Commit

Permalink
[FEAT] 가까워지기 질문에 이미지 추가 #145
Browse files Browse the repository at this point in the history
  • Loading branch information
ddongseop committed Apr 1, 2024
1 parent dd7c42b commit 82fc043
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 82fc043

Please sign in to comment.