Skip to content

Commit

Permalink
Fix: 쿠폰 확인 페이지 id 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
marinesnow34 committed Nov 24, 2023
1 parent 383b4d5 commit afeb552
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
@Getter
@Builder
public class CouponDto {
private Long couponId;
private String couponName;
private String publisher;
private String description;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public CouponsRes toCouponsRes(List<Coupon> coupons) {

private CouponDto toCouponDto(Coupon coupon) {
return CouponDto.builder()
.couponId(coupon.getId())
.couponName(coupon.getCouponDetail().getName())
.description(coupon.getCouponDetail().getDescription())
.expirationDate(coupon.getCouponDetail().getExpire())
Expand Down

0 comments on commit afeb552

Please sign in to comment.