Skip to content

Commit

Permalink
fix: 음식 정보 조회시 가게 이름도 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
summit45 committed Nov 20, 2023
1 parent b483491 commit 1904995
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/kusitms/jipbap/food/FoodService.java
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public FoodDetailResponse getFoodDetail(Long foodId) {
return FoodDetailResponse.builder()
.id(food.getId())
.storeId(food.getStore().getId())
.storeName(food.getStore().getName())
.categoryId(food.getCategory().getId())
.name(food.getName())
.dollarPrice(food.getDollarPrice())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
public class FoodDetailResponse {
private Long id;
private Long storeId;
private String storeName;
private Long categoryId;
private String name;
private Long dollarPrice;
Expand Down

0 comments on commit 1904995

Please sign in to comment.