Skip to content

Commit f2464d8

Browse files
oroi2009frombunny
authored andcommitted
♻️ refactor : Res 코드 리팩토링
1 parent a5b6ff5 commit f2464d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/example/Centralthon/domain/menu/web/dto/StoresByMenuRes.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.example.Centralthon.domain.store.entity.Store;
66

77
public record StoresByMenuRes(
8+
long menuId,
89
String storeName,
910
double distance,
1011
int salePrice,
@@ -13,6 +14,7 @@ public record StoresByMenuRes(
1314
public static StoresByMenuRes from(Menu menu, double distance) {
1415
Store store = menu.getStore();
1516
return new StoresByMenuRes(
17+
menu.getId(),
1618
store.getName(),
1719
distance,
1820
menu.getSalePrice(),

0 commit comments

Comments
 (0)