From afeb5528569c9ff8c15d8f0241511d2c4dcdc7ab Mon Sep 17 00:00:00 2001 From: Joowon Lim Date: Sat, 25 Nov 2023 05:05:47 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=BF=A0=ED=8F=B0=20=ED=99=95=EC=9D=B8?= =?UTF-8?q?=20=ED=8E=98=EC=9D=B4=EC=A7=80=20id=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/readyvery/readyverydemo/src/coupon/dto/CouponDto.java | 1 + .../com/readyvery/readyverydemo/src/coupon/dto/CouponMapper.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/readyvery/readyverydemo/src/coupon/dto/CouponDto.java b/src/main/java/com/readyvery/readyverydemo/src/coupon/dto/CouponDto.java index 876a88c..06d605d 100644 --- a/src/main/java/com/readyvery/readyverydemo/src/coupon/dto/CouponDto.java +++ b/src/main/java/com/readyvery/readyverydemo/src/coupon/dto/CouponDto.java @@ -8,6 +8,7 @@ @Getter @Builder public class CouponDto { + private Long couponId; private String couponName; private String publisher; private String description; diff --git a/src/main/java/com/readyvery/readyverydemo/src/coupon/dto/CouponMapper.java b/src/main/java/com/readyvery/readyverydemo/src/coupon/dto/CouponMapper.java index 8e9f1b6..0dc53ab 100644 --- a/src/main/java/com/readyvery/readyverydemo/src/coupon/dto/CouponMapper.java +++ b/src/main/java/com/readyvery/readyverydemo/src/coupon/dto/CouponMapper.java @@ -23,6 +23,7 @@ public CouponsRes toCouponsRes(List coupons) { private CouponDto toCouponDto(Coupon coupon) { return CouponDto.builder() + .couponId(coupon.getId()) .couponName(coupon.getCouponDetail().getName()) .description(coupon.getCouponDetail().getDescription()) .expirationDate(coupon.getCouponDetail().getExpire())