-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ssu.eatssu.domain.admin.dto; | ||
|
||
public record BriefMenu(Long id, String menuName, Integer price, Double rating) { | ||
public record BriefMenu(Long id, String name, Integer price) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
package ssu.eatssu.domain.admin.dto; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public record FixMenuBoard(String restaurantName, List<BriefMenu> menus ) implements RestaurantMenuBoard { | ||
public void addMenu(BriefMenu menu) { | ||
public record FixMenuBoard(String restaurantName, List<MenuLine> menus) implements RestaurantMenuBoard { | ||
public FixMenuBoard(String restaurantName) { | ||
this(restaurantName, new ArrayList<>()); | ||
} | ||
|
||
public void addMenu(MenuLine menu) { | ||
menus.add(menu); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package ssu.eatssu.domain.admin.dto; | ||
|
||
public record MenuLine(Long id, String name, Integer price, Double rating) { | ||
} |