Skip to content

Commit

Permalink
Merge pull request #124 from marinesnow34/eventMessage
Browse files Browse the repository at this point in the history
Feat: 가게 테이크 아웃 이벤트 추가
  • Loading branch information
marinesnow34 authored Dec 3, 2023
2 parents 52ba0ab + 28dafdb commit 0139f28
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/com/readyvery/readyverydemo/domain/Store.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ public class Store extends BaseTimeEntity {
@Column
private String eventMessage;

// 가게 테이크 아웃 이벤트 메시지
@Column
private String takeOutEventMessage;

//가게 등급
@Column
@Enumerated(EnumType.STRING)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@
@Builder
public class StoreEventRes {
private String eventImgUrl;
private String takeOutEvent;
}
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 0139f28

Please sign in to comment.