Skip to content

Commit

Permalink
✨ feat: 응답 Dto 에 배열이 비어있는 지 판별하는 속성 추가 (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
synoti21 committed Dec 2, 2023
1 parent c863a64 commit 71ecda5
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ public class ResponseNutritionSumByDateDto implements Serializable {

BaseNutrition baseNutrition;

boolean isEmpty;

public static ResponseNutritionSumByDateDto of (Long userId, LocalDate checkDate, int nutritionSumType, int totalKcal,
int totalCarbohydrate, int totalProtein, int totalFat, double ratioKcal,
double ratioCarbohydrate, double ratioProtein, double ratioFat,
BaseNutrition baseNutrition){
BaseNutrition baseNutrition, boolean isEmpty){
return new ResponseNutritionSumByDateDto(userId, nutritionSumType, totalKcal,
totalCarbohydrate, totalProtein, totalFat, ratioKcal,
ratioCarbohydrate, ratioProtein, ratioFat, baseNutrition);
ratioCarbohydrate, ratioProtein, ratioFat, baseNutrition, isEmpty);
}
}

0 comments on commit 71ecda5

Please sign in to comment.