Skip to content

Commit

Permalink
Feat: 생년월일 컬럼 추가 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
tokyj515 committed Jul 31, 2023
1 parent 8054a6d commit 8867c2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ public ApiResponse<UserRes.UserDetailDto> signup(@RequestBody UserReq.SignupUser
if(signupUserDto.getPassword().length() < 6)
throw new BadRequestException("비밀번호를 6자리 이상 입력해주세요");

//생년월일 8자리 체크
if(signupUserDto.getBirth().length() < 8)
throw new BadRequestException("생년월일을 8자리로 입력해주세요");

//올바른 이름인지 확인



return new ApiResponse<>(userService.signup(signupUserDto));
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/example/neoul/dto/user/UserReq.java
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static class SignupUserDto {
private String password;
private String name;
private String phone;
private String birth;
private String imageUrl;
}

Expand Down

0 comments on commit 8867c2c

Please sign in to comment.