From 67c35850e80999cb7d8b6999f38fba1b1db86597 Mon Sep 17 00:00:00 2001 From: suhyun Date: Wed, 31 Jan 2024 21:36:45 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=B6=84=EC=96=91=ED=9B=84?= =?UTF-8?q?=EA=B8=B0=EC=99=80=20=EB=B3=B4=EC=9C=A0=EA=B2=AC=EC=A2=85=20dto?= =?UTF-8?q?=EC=9D=BC=EB=B6=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/example/petree/domain/adopter/dto/ReviewDto.java | 5 +++-- .../com/example/petree/domain/dog/dto/PossessionDogDto.java | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/example/petree/domain/adopter/dto/ReviewDto.java b/src/main/java/com/example/petree/domain/adopter/dto/ReviewDto.java index 82b27c4..3a1d447 100644 --- a/src/main/java/com/example/petree/domain/adopter/dto/ReviewDto.java +++ b/src/main/java/com/example/petree/domain/adopter/dto/ReviewDto.java @@ -15,6 +15,7 @@ import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotEmpty; +import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import java.time.LocalDate; import java.util.List; @@ -69,8 +70,8 @@ public static class ReviewUpdateRequestDto { @Length(max = 3000, message = "내용은 최대 3000자까지 입력 가능합니다.") @Schema(description = "내용", example = "정성스럽게 키우곘습니다!") private String content; - @NotBlank(message = "이미지 삭제 여부는 필수 입력값입니다.") - @Schema(description = "이미지 삭제 여부") + @NotNull(message = "이미지 삭제 여부는 필수 입력값입니다.") + @Schema(description = "이미지 삭제 여부", example = "false") private boolean deleteImages; @NotEmpty(message = "이미지는 필수 입력값입니다.") @Schema(description = "분양 후기 이미지 리스트") diff --git a/src/main/java/com/example/petree/domain/dog/dto/PossessionDogDto.java b/src/main/java/com/example/petree/domain/dog/dto/PossessionDogDto.java index 6f449e1..ee68db9 100644 --- a/src/main/java/com/example/petree/domain/dog/dto/PossessionDogDto.java +++ b/src/main/java/com/example/petree/domain/dog/dto/PossessionDogDto.java @@ -142,7 +142,7 @@ public static class UpdateDogDto{ private List imgIdToDelete; @Schema(description = "이미지 삭제 여부 ", example = "false") - @NotBlank(message = "이미지 삭제 여부는 필수 입력 값입니다.") + @NotNull(message = "이미지 삭제 여부는 필수 입력 값입니다.") private boolean isDeleteImages; @Schema(description = "보유 견종의 이미지를 입력받는 리스트")