Skip to content

Commit

Permalink
[feat] add heartCount response
Browse files Browse the repository at this point in the history
  • Loading branch information
PicturePark1101 committed Jul 11, 2024
1 parent 6507d81 commit 3f43407
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ public record FavoriteStoreFindResponse(
Long id,
String name,
String imageUrl,
String storeCategory,
int lowestPrice
String category,
int lowestPrice,
int heartCount
) {

public static FavoriteStoreFindResponse of(Store store) {
Expand All @@ -18,6 +19,7 @@ public static FavoriteStoreFindResponse of(Store store) {
store.getName(),
store.getImage(),
store.getCategory().getName(),
store.getLowestPrice());
store.getLowestPrice(),
store.getHeartCount());
}
}

0 comments on commit 3f43407

Please sign in to comment.