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 dfc39d2..8e24fdd 100644 --- a/src/main/java/umc/IRECIPE_Server/dto/response/PostResponseDTO.java +++ b/src/main/java/umc/IRECIPE_Server/dto/response/PostResponseDTO.java @@ -223,15 +223,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; } }