Skip to content

Commit

Permalink
Merge pull request #59 from 28th-meetup/fix/foodPrice
Browse files Browse the repository at this point in the history
fix: 음식 정보 조회시 가게 이름도 추가
  • Loading branch information
summit45 authored Nov 20, 2023
2 parents 18abbaf + 1904995 commit a57200e
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 a57200e

Please sign in to comment.