-
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
1 parent
eec3c95
commit ac76f29
Showing
23 changed files
with
191 additions
and
160 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
7 changes: 4 additions & 3 deletions
7
...tion/app-api/src/main/java/core/startup/mealtoktok/api/dishstore/request/DishRequest.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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
package core.startup.mealtoktok.api.dishstore.request; | ||
|
||
import core.startup.mealtoktok.domain.dishstore.DishInfo; | ||
import core.startup.mealtoktok.domain.dishstore.DishContent; | ||
|
||
public record DishRequest(String dishName, int dishPrice, int dishQuantity) { | ||
public DishInfo toDishInfo() { | ||
return DishInfo.of(dishName, dishPrice, dishQuantity); | ||
|
||
public DishContent toContent() { | ||
return DishContent.of(dishName, dishPrice, dishQuantity); | ||
} | ||
} |
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
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
9 changes: 0 additions & 9 deletions
9
domain/src/main/java/core/startup/mealtoktok/domain/dishstore/DishAndImage.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
domain/src/main/java/core/startup/mealtoktok/domain/dishstore/DishAndImageWrapper.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
12 changes: 12 additions & 0 deletions
12
domain/src/main/java/core/startup/mealtoktok/domain/dishstore/DishContent.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,12 @@ | ||
package core.startup.mealtoktok.domain.dishstore; | ||
|
||
import java.math.BigDecimal; | ||
|
||
import core.startup.mealtoktok.common.dto.Money; | ||
|
||
public record DishContent(String dishName, Money dishPrice, int dishQuantity) { | ||
|
||
public static DishContent of(String dishName, int dishPrice, int dishQuantity) { | ||
return new DishContent(dishName, Money.from(BigDecimal.valueOf(dishPrice)), dishQuantity); | ||
} | ||
} |
12 changes: 0 additions & 12 deletions
12
domain/src/main/java/core/startup/mealtoktok/domain/dishstore/DishInfo.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
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
10 changes: 10 additions & 0 deletions
10
domain/src/main/java/core/startup/mealtoktok/domain/dishstore/DishWithImage.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,10 @@ | ||
package core.startup.mealtoktok.domain.dishstore; | ||
|
||
import core.startup.mealtoktok.common.dto.Image; | ||
|
||
public record DishWithImage(Dish dish, Image image) { | ||
|
||
public static DishWithImage of(Dish dish, Image images) { | ||
return new DishWithImage(dish, images); | ||
} | ||
} |
Oops, something went wrong.