From 28dafdb87b95492c6c851c7d189f23de490a14ee Mon Sep 17 00:00:00 2001 From: Joowon Lim Date: Mon, 4 Dec 2023 00:57:41 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=EA=B0=80=EA=B2=8C=20=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=ED=81=AC=20=EC=95=84=EC=9B=83=20=EC=9D=B4=EB=B2=A4=ED=8A=B8=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/readyvery/readyverydemo/domain/Store.java | 4 ++++ .../readyvery/readyverydemo/src/store/dto/StoreEventRes.java | 1 + .../readyvery/readyverydemo/src/store/dto/StoreMapper.java | 1 + 3 files changed, 6 insertions(+) diff --git a/src/main/java/com/readyvery/readyverydemo/domain/Store.java b/src/main/java/com/readyvery/readyverydemo/domain/Store.java index 64a5555..dcd33d5 100644 --- a/src/main/java/com/readyvery/readyverydemo/domain/Store.java +++ b/src/main/java/com/readyvery/readyverydemo/domain/Store.java @@ -68,6 +68,10 @@ public class Store extends BaseTimeEntity { @Column private String eventMessage; + // 가게 테이크 아웃 이벤트 메시지 + @Column + private String takeOutEventMessage; + //가게 등급 @Column @Enumerated(EnumType.STRING) diff --git a/src/main/java/com/readyvery/readyverydemo/src/store/dto/StoreEventRes.java b/src/main/java/com/readyvery/readyverydemo/src/store/dto/StoreEventRes.java index c7bd9be..ada6c32 100644 --- a/src/main/java/com/readyvery/readyverydemo/src/store/dto/StoreEventRes.java +++ b/src/main/java/com/readyvery/readyverydemo/src/store/dto/StoreEventRes.java @@ -7,4 +7,5 @@ @Builder public class StoreEventRes { private String eventImgUrl; + private String takeOutEvent; } diff --git a/src/main/java/com/readyvery/readyverydemo/src/store/dto/StoreMapper.java b/src/main/java/com/readyvery/readyverydemo/src/store/dto/StoreMapper.java index 36e5755..5603347 100644 --- a/src/main/java/com/readyvery/readyverydemo/src/store/dto/StoreMapper.java +++ b/src/main/java/com/readyvery/readyverydemo/src/store/dto/StoreMapper.java @@ -61,6 +61,7 @@ private MenuItemDto foodieToMenuItems(Foodie foodie) { public StoreEventRes storeToStoreEventRes(Store store) { return StoreEventRes.builder() + .takeOutEvent(store.getTakeOutEventMessage()) .eventImgUrl("/images/" + store.getEngName() + "/" + store.getAdImgUrl()) .build(); }