Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
not blank로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
ori0o0p committed Feb 1, 2024
1 parent b7fb949 commit a280d40
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -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
) {
}
Original file line number Diff line number Diff line change
@@ -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
) {
}
Original file line number Diff line number Diff line change
@@ -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 = "비밀번호 형식이 올바르지 않습니다.")
Expand Down
Original file line number Diff line number Diff line change
@@ -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
) {
}

0 comments on commit a280d40

Please sign in to comment.