Skip to content

Commit

Permalink
feat: imageurl 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongh00 committed Jul 22, 2024
1 parent 56e9e72 commit d01cf77
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ public MarketInfo findMarketInfo() {
market.getDescription(),
market.getStartHour(),
market.getCloseHour(),
market.getContact());
market.getContact(),
market.getImageUrl());
}

public void saveVisitList(Long storeId, String accessToken) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ public record MarketInfo(Long marketId,
String description,
String startHour,
String closeHour,
String contact) {
String contact,
String image) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public List<StoreInfo> findStoreInfo() {
.map(menu -> new MenuDetailDTO(menu.getId(),
menu.getName(),
menu.getPrice(),
menu.getContent()))
menu.getContent(),
menu.getImageUrl()))
.toList();

StoreInfo storeInfo = new StoreInfo(
Expand All @@ -54,6 +55,7 @@ public List<StoreInfo> findStoreInfo() {
store.getOpenHours(),
store.getCloseHours(),
store.getContact(),
store.getImageUrl(),
menuDetails
);
storeInfoList.add(storeInfo);
Expand Down Expand Up @@ -88,7 +90,7 @@ public List<StoreResponse> findStoreByFilter(String search, String category) {
.toList();

for (Store store : list) {
StoreResponse ex = new StoreResponse(store.getName(), finalStoreCategory, store.getLocation(), store.getOpenHours());
StoreResponse ex = new StoreResponse(store.getName(), finalStoreCategory, store.getLocation(), store.getOpenHours(), store.getImageUrl());
response.add(ex);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
public record MenuDetailDTO(Long marketId,
String name,
Integer price,
String content) {
String content,
String menuImage) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ public record StoreInfo(Long storeId,
String openHours,
String closeHours,
String contact,
String storeImage,
List<MenuDetailDTO> menuDetails) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
public record StoreResponse(String name,
StoreCategory category,
String location,
String openHours) {
String openHours,
String image) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,5 @@ public class Market {
private String startHour;
private String closeHour;
private String contact;
private String imageUrl;
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ public class Menu {
private String name;
private Integer price;
private String content;
private String imageUrl;
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class Store {
private String openHours;
private String closeHours;
private String contact;
private String imageUrl;

@JsonValue
public String getCategoryValue() {
Expand Down

0 comments on commit d01cf77

Please sign in to comment.