Skip to content

Commit

Permalink
Merge pull request #126 from 9oormthon-univ/feature/#121
Browse files Browse the repository at this point in the history
🩹 [FIX] 나이 제외
  • Loading branch information
20210815 authored Dec 4, 2024
2 parents 2bc2b55 + c48ad1d commit 4b9ea49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main/java/com/carely/backend/dto/user/RegisterDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@ public class RegisterDTO {
// 이름
@NotNull
private String username;
// 나이
@NotNull
private Integer age;
// 전화번호
@NotNull
private String phoneNum;
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/carely/backend/service/UserService.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,12 @@ public class UserService {
// private final KakaoAddressService kakaoAddressService;

public RegisterDTO.Res register(RegisterDTO registerDTO, MultipartFile file) throws IOException {
Boolean checkCertificate = false;

if (file.isEmpty() && registerDTO.getUserType().equals(UserType.CARE_WORKER)) {
throw new NoFileException("파일 없는데");
}

String imageUrl = ocrService.uploadCertificateImage(file, registerDTO.getKakaoId());

String username = registerDTO.getUsername();
Expand All @@ -60,6 +63,7 @@ public RegisterDTO.Res register(RegisterDTO registerDTO, MultipartFile file) thr
throw new DuplicateUsernameException("중복된 아이디가 존재합니다.");
}


Map<String, Double> location = getLocation(address);
// 위도, 경도 설정
Double latitude = location.get("latitude");
Expand Down

0 comments on commit 4b9ea49

Please sign in to comment.