From 71ecda5cc79afb764809301085b28afd6ff76683 Mon Sep 17 00:00:00 2001 From: Ahn Jiwan Date: Sat, 2 Dec 2023 22:26:37 +0900 Subject: [PATCH] =?UTF-8?q?:sparkles:=20feat:=20=EC=9D=91=EB=8B=B5=20Dto?= =?UTF-8?q?=20=EC=97=90=20=EB=B0=B0=EC=97=B4=EC=9D=B4=20=EB=B9=84=EC=96=B4?= =?UTF-8?q?=EC=9E=88=EB=8A=94=20=EC=A7=80=20=ED=8C=90=EB=B3=84=ED=95=98?= =?UTF-8?q?=EB=8A=94=20=EC=86=8D=EC=84=B1=20=EC=B6=94=EA=B0=80=20(#129)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../diareat/food/dto/ResponseNutritionSumByDateDto.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/diareat/diareat/food/dto/ResponseNutritionSumByDateDto.java b/src/main/java/com/diareat/diareat/food/dto/ResponseNutritionSumByDateDto.java index 09a99cd..17e7dd3 100644 --- a/src/main/java/com/diareat/diareat/food/dto/ResponseNutritionSumByDateDto.java +++ b/src/main/java/com/diareat/diareat/food/dto/ResponseNutritionSumByDateDto.java @@ -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); } }