-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'be' of https://github.com/JNU-econovation/Gaebaljip int…
…o refactor/#392
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
BE/exceed/src/main/java/com/gaebaljip/exceed/dto/EatMealFoodDTO.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,16 @@ | ||
package com.gaebaljip.exceed.dto; | ||
|
||
import javax.validation.constraints.NotNull; | ||
|
||
import com.gaebaljip.exceed.common.ValidationMessage; | ||
|
||
import lombok.Builder; | ||
|
||
public record EatMealFoodDTO( | ||
@NotNull(message = "음식PK를 " + ValidationMessage.NOT_NULL) Long foodId, | ||
Double multiple, | ||
Integer g) { | ||
|
||
@Builder | ||
public EatMealFoodDTO {} | ||
} |
21 changes: 21 additions & 0 deletions
21
BE/exceed/src/main/java/com/gaebaljip/exceed/dto/request/EatMealRequest.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,21 @@ | ||
package com.gaebaljip.exceed.dto.request; | ||
|
||
import java.util.List; | ||
|
||
import javax.validation.Valid; | ||
import javax.validation.constraints.NotBlank; | ||
|
||
import com.gaebaljip.exceed.application.domain.meal.MealType; | ||
import com.gaebaljip.exceed.common.ValidationMessage; | ||
import com.gaebaljip.exceed.common.annotation.Enum; | ||
import com.gaebaljip.exceed.dto.EatMealFoodDTO; | ||
|
||
import lombok.Builder; | ||
|
||
public record EatMealRequest( | ||
@Valid List<EatMealFoodDTO> eatMealFoodDTOS, | ||
@Enum(enumClass = MealType.class) String mealType, | ||
@NotBlank(message = "파일명을 " + ValidationMessage.NOT_BLANK) String fileName) { | ||
@Builder | ||
public EatMealRequest {} | ||
} |