Skip to content

Commit

Permalink
Merge pull request #200 from Team-Hankki/feat/199
Browse files Browse the repository at this point in the history
[fix] 식당 세부조회 응답 변경
  • Loading branch information
Parkjyun authored Oct 7, 2024
2 parents 7d63cab + 9a1c072 commit f3d4c4d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import org.hankki.hankkiserver.domain.menu.model.Menu;

public record MenuResponse(
Long id,
String name,
int price
) {
public static MenuResponse of(Menu menu) {
return new MenuResponse(menu.getName(), menu.getPrice());
return new MenuResponse(menu.getId(), menu.getName(), menu.getPrice());
}
}

0 comments on commit f3d4c4d

Please sign in to comment.