We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5b6ff5 commit f2464d8Copy full SHA for f2464d8
src/main/java/com/example/Centralthon/domain/menu/web/dto/StoresByMenuRes.java
@@ -5,6 +5,7 @@
5
import com.example.Centralthon.domain.store.entity.Store;
6
7
public record StoresByMenuRes(
8
+ long menuId,
9
String storeName,
10
double distance,
11
int salePrice,
@@ -13,6 +14,7 @@ public record StoresByMenuRes(
13
14
public static StoresByMenuRes from(Menu menu, double distance) {
15
Store store = menu.getStore();
16
return new StoresByMenuRes(
17
+ menu.getId(),
18
store.getName(),
19
distance,
20
menu.getSalePrice(),
0 commit comments