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(); }