-
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
9 changed files
with
106 additions
and
35 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
src/main/java/ssu/eatssu/domain/admin/dto/FixMenuBoard.java
This file was deleted.
Oops, something went wrong.
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,14 @@ | ||
package ssu.eatssu.domain.admin.dto; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public record MenuBoard(String restaurantName, List<MenuSection> menuSections) { | ||
public MenuBoard(String restaurantName) { | ||
this(restaurantName, new ArrayList<>()); | ||
} | ||
|
||
public void addMenuSection(MenuSection menuSection) { | ||
menuSections.add(menuSection); | ||
} | ||
} |
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
14 changes: 14 additions & 0 deletions
14
src/main/java/ssu/eatssu/domain/admin/dto/MenuSection.java
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,14 @@ | ||
package ssu.eatssu.domain.admin.dto; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
public record MenuSection(String title, List<MenuLine> menuLines) { | ||
public MenuSection(String title) { | ||
this(title, new ArrayList<>()); | ||
} | ||
|
||
public void addMenuLine(MenuLine menuLine) { | ||
menuLines.add(menuLine); | ||
} | ||
} |
5 changes: 0 additions & 5 deletions
5
src/main/java/ssu/eatssu/domain/admin/dto/RestaurantMenuBoard.java
This file was deleted.
Oops, something went wrong.
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
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
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
24 changes: 24 additions & 0 deletions
24
src/main/java/ssu/eatssu/domain/menu/entity/MenuCategory.java
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,24 @@ | ||
package ssu.eatssu.domain.menu.entity; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.*; | ||
import ssu.eatssu.domain.restaurant.entity.RestaurantName; | ||
|
||
@Entity | ||
@Getter | ||
@NoArgsConstructor(access = AccessLevel.PROTECTED) | ||
@AllArgsConstructor | ||
@Builder | ||
public class MenuCategory { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "menu_category_id") | ||
private Long id; | ||
|
||
private String name; | ||
|
||
@Enumerated(EnumType.STRING) | ||
private RestaurantName restaurantName; | ||
|
||
} |