From 9e87f10d0be4f2740ef92a2f742bb84d02b16cc4 Mon Sep 17 00:00:00 2001 From: jangsubin Date: Mon, 12 Feb 2024 15:46:47 +0900 Subject: [PATCH] =?UTF-8?q?FIX=20:=20IngredientResponse=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/IngredientResponse.java | 36 +++++++++---------- .../dto/response/PostResponseDTO.java | 10 +++--- 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/main/java/umc/IRECIPE_Server/dto/IngredientResponse.java b/src/main/java/umc/IRECIPE_Server/dto/IngredientResponse.java index 136a30e..f39e3a3 100644 --- a/src/main/java/umc/IRECIPE_Server/dto/IngredientResponse.java +++ b/src/main/java/umc/IRECIPE_Server/dto/IngredientResponse.java @@ -22,7 +22,7 @@ public class IngredientResponse { @NoArgsConstructor @AllArgsConstructor public static class addResultDTO{ - @Schema(description = "재료 아이디", defaultValue = "1") + @Schema(description = "재료 아이디") Long ingredientId; @Schema(description = "재료 생성일시") LocalDateTime createdAt; @@ -33,19 +33,19 @@ public static class addResultDTO{ @NoArgsConstructor @AllArgsConstructor public static class findOneResultDTO{ - @Schema(description = "재료 아이디", defaultValue = "1") + @Schema(description = "재료 아이디") Long ingredientId; - @Schema(description = "재료 이름", defaultValue = "소고기") + @Schema(description = "재료 이름") String name; @Schema(description = "재료 카테고리", defaultValue = "MEAT") IngredientCategory category; - @Schema(description = "재료 메모", defaultValue = "빨리 먹어야 함") + @Schema(description = "재료 메모") String memo; @Schema(description = "재료 보관방법", defaultValue = "FROZEN") Type type; - @Schema(description = "재료 유통기한", defaultValue = "2025-02-09") + @Schema(description = "재료 유통기한") LocalDate expiryDate; - @Schema(description = "유통기한까지 남은 일 수", defaultValue = "10") + @Schema(description = "유통기한까지 남은 일 수") Integer remainingDays; } @@ -55,7 +55,7 @@ public static class findOneResultDTO{ @NoArgsConstructor @AllArgsConstructor public static class updateResultDTO{ - @Schema(description = "재료 아이디", defaultValue = "1") + @Schema(description = "재료 아이디") Long ingredientId; @Schema(description = "수정 일시") LocalDateTime updatedAt; @@ -77,19 +77,19 @@ public static class deleteResultDTO{ @NoArgsConstructor @AllArgsConstructor public static class findIngredientResultDTO{ - @Schema(description = "재료 아이디", defaultValue = "1") + @Schema(description = "재료 아이디") Long ingredientId; - @Schema(description = "재료 이름", defaultValue = "소고기") + @Schema(description = "재료 이름") String name; @Schema(description = "재료 카테고리", defaultValue = "MEAT") IngredientCategory category; - @Schema(description = "재료 메모", defaultValue = "빨리 먹어야 함") + @Schema(description = "재료 메모") String memo; @Schema(description = "재료 보관방법", defaultValue = "FROZEN") Type type; - @Schema(description = "재료 유통기한", defaultValue = "2025-02-09") + @Schema(description = "재료 유통기한") LocalDate expiryDate; - @Schema(description = "유통기한까지 남은 일 수", defaultValue = "10") + @Schema(description = "유통기한까지 남은 일 수") Integer remainingDays; } @@ -100,16 +100,16 @@ public static class findIngredientResultDTO{ @AllArgsConstructor public static class findAllResultListDTO{ @Schema(description = "게시글 리스트") - List postList; - @Schema(description = "리스트 사이즈", defaultValue = "1") + List ingredientList; + @Schema(description = "리스트 사이즈") Integer listSize; - @Schema(description = "전체 페이지 갯수", defaultValue = "1") + @Schema(description = "전체 페이지 갯수") Integer totalPage; - @Schema(description = "전체 데이터 갯수", defaultValue = "10") + @Schema(description = "전체 데이터 갯수") Long totalElements; - @Schema(description = "첫 페이지면 true", defaultValue = "true") + @Schema(description = "첫 페이지면 true") Boolean isFirst; - @Schema(description = " 마지막 페이지면 true", defaultValue = "true") + @Schema(description = " 마지막 페이지면 true") Boolean isLast; } diff --git a/src/main/java/umc/IRECIPE_Server/dto/response/PostResponseDTO.java b/src/main/java/umc/IRECIPE_Server/dto/response/PostResponseDTO.java index 8226b05..a9bfdfc 100644 --- a/src/main/java/umc/IRECIPE_Server/dto/response/PostResponseDTO.java +++ b/src/main/java/umc/IRECIPE_Server/dto/response/PostResponseDTO.java @@ -217,15 +217,15 @@ public static class getRankedPostDTO { public static class findAllResultListDTO{ @Schema(description = "게시글 리스트") List postList; - @Schema(description = "리스트 사이즈", defaultValue = "1") + @Schema(description = "리스트 사이즈") Integer listSize; - @Schema(description = "전체 페이지 갯수", defaultValue = "1") + @Schema(description = "전체 페이지 갯수") Integer totalPage; - @Schema(description = "전체 데이터 갯수", defaultValue = "10") + @Schema(description = "전체 데이터 갯수") Long totalElements; - @Schema(description = "첫 페이지면 true", defaultValue = "true") + @Schema(description = "첫 페이지면 true") Boolean isFirst; - @Schema(description = " 마지막 페이지면 true", defaultValue = "true") + @Schema(description = " 마지막 페이지면 true") Boolean isLast; } }