Skip to content

Commit

Permalink
Merge pull request #205 from Make-A-Wish-Sopt/feature/jiyoung-#204
Browse files Browse the repository at this point in the history
[ADD] 소원 이미지 추가
  • Loading branch information
wlwpfh authored Nov 9, 2024
2 parents 6b6aaba + be4d28d commit 38aa82b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.apache.commons.lang3.StringUtils;

@Builder
public record WishResponseDTO(String name, long dayCount, String title, String hint, String bank, String accountNumber, boolean wantsGift) {
public record WishResponseDTO(String name, long dayCount, String title, String hint, String bank, String accountNumber, boolean wantsGift, String presentImageUrl) {

public static WishResponseDTO from(Wish wish) {
val name = nonNull(wish.getWisher().getAccount())
Expand All @@ -33,6 +33,7 @@ public static WishResponseDTO from(Wish wish) {
.dayCount(getRemainDayCount(wish.getEndAt()))
.title(wish.getTitle())
.wantsGift(wish.isWantsGift())
.presentImageUrl(wish.getPresentImageUrl())
.build();
}

Expand Down

0 comments on commit 38aa82b

Please sign in to comment.