From a280d4091478c1013db126d59b1888718f05e6c3 Mon Sep 17 00:00:00 2001 From: 101 Date: Thu, 1 Feb 2024 22:01:32 +0900 Subject: [PATCH] =?UTF-8?q?not=20blank=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../daemawiki/domain/auth/dto/request/LoginRequest.java | 6 +++--- .../daemawiki/domain/auth/dto/request/ReissueRequest.java | 4 ++-- .../daemawiki/domain/auth/dto/request/SignupRequest.java | 4 ++-- .../daemawiki/domain/mail/dto/AuthCodeVerifyRequest.java | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/example/daemawiki/domain/auth/dto/request/LoginRequest.java b/src/main/java/com/example/daemawiki/domain/auth/dto/request/LoginRequest.java index 196e9d1a..41b9adbb 100644 --- a/src/main/java/com/example/daemawiki/domain/auth/dto/request/LoginRequest.java +++ b/src/main/java/com/example/daemawiki/domain/auth/dto/request/LoginRequest.java @@ -1,11 +1,11 @@ package com.example.daemawiki.domain.auth.dto.request; -import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.NotBlank; public record LoginRequest( - @NotNull(message = "이메일을 입력해주세요.") + @NotBlank(message = "이메일을 입력해주세요.") String email, - @NotNull(message = "비밀번호를 입력해주세요.") + @NotBlank(message = "비밀번호를 입력해주세요.") String password ) { } diff --git a/src/main/java/com/example/daemawiki/domain/auth/dto/request/ReissueRequest.java b/src/main/java/com/example/daemawiki/domain/auth/dto/request/ReissueRequest.java index 4859a137..76c5b8a2 100644 --- a/src/main/java/com/example/daemawiki/domain/auth/dto/request/ReissueRequest.java +++ b/src/main/java/com/example/daemawiki/domain/auth/dto/request/ReissueRequest.java @@ -1,9 +1,9 @@ package com.example.daemawiki.domain.auth.dto.request; -import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.NotBlank; public record ReissueRequest( - @NotNull(message = "데이터가 비어있습니다.") + @NotBlank(message = "토큰이 비어있습니다.") String token ) { } diff --git a/src/main/java/com/example/daemawiki/domain/auth/dto/request/SignupRequest.java b/src/main/java/com/example/daemawiki/domain/auth/dto/request/SignupRequest.java index 515bf0a0..d1209f59 100644 --- a/src/main/java/com/example/daemawiki/domain/auth/dto/request/SignupRequest.java +++ b/src/main/java/com/example/daemawiki/domain/auth/dto/request/SignupRequest.java @@ -1,13 +1,13 @@ package com.example.daemawiki.domain.auth.dto.request; -import jakarta.validation.constraints.Email; +import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Pattern; import jakarta.validation.constraints.Size; public record SignupRequest( @Size(max = 10, min = 1, message = "닉네임은 1자 이상 10자 이하로 설정해야 합니다.") String nickname, - @Email(message = "올바른 이메일 형식이 아닙니다.") + @NotBlank(message = "이메일을 입력해주세요.") String email, @Pattern(regexp = "^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d!@#$%^&*()-=_+]*$", message = "비밀번호 형식이 올바르지 않습니다.") diff --git a/src/main/java/com/example/daemawiki/domain/mail/dto/AuthCodeVerifyRequest.java b/src/main/java/com/example/daemawiki/domain/mail/dto/AuthCodeVerifyRequest.java index ecc15892..f265be7a 100644 --- a/src/main/java/com/example/daemawiki/domain/mail/dto/AuthCodeVerifyRequest.java +++ b/src/main/java/com/example/daemawiki/domain/mail/dto/AuthCodeVerifyRequest.java @@ -1,11 +1,11 @@ package com.example.daemawiki.domain.mail.dto; -import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.NotBlank; public record AuthCodeVerifyRequest( - @NotNull(message = "인가 받을 메일을 입력해주세요") + @NotBlank(message = "인가 받을 메일을 입력해주세요") String mail, - @NotNull(message = "인증번호를 입력해주세요.") + @NotBlank(message = "인증번호를 입력해주세요.") String authCode ) { }