Skip to content

Commit

Permalink
fix: 지원자 정보 수정에 비밀번호 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
gorapang committed Dec 25, 2024
1 parent 47897e4 commit 1e7651d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ public class ApplicantUpdateRequestDto {
private String name;
private String major;
private String phoneNum;
private String password;

@Builder
public ApplicantUpdateRequestDto(String name, String major, String phoneNum) {
public ApplicantUpdateRequestDto(String name, String major, String phoneNum, String password) {
this.name = name;
//this.school = school;
this.major = major;
this.phoneNum = phoneNum;
this.password = password;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ public void updateApplicantInfo(Long applicantId, ApplicantUpdateRequestDto upda
//applicant.setSchool(updateRequestDto.getSchool());
applicant.setMajor(updateRequestDto.getMajor());
applicant.setPhoneNum(updateRequestDto.getPhoneNum());
applicant.setPassword(updateRequestDto.getPassword());
applicantRepository.save(applicant);
}
}

0 comments on commit 1e7651d

Please sign in to comment.