-
Notifications
You must be signed in to change notification settings - Fork 0
[feat] 메일 발송 기능 구현 #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
# Conflicts: # src/main/java/dmu/dasom/api/domain/applicant/repository/ApplicantRepository.java
| } | ||
|
|
||
| @Operation(summary = "지원자 메일 전송") | ||
| @Operation(summary = "서류 결과 메일 전송") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
서류, 최종 결과 메일 발송 메소드를 따로 나누지 않고 메일 발송 메소드 식으로 하나로 합쳐 클라이언트 요청에 따라 다르게 처리할 수 있을 것 같네요.
Enum으로 타입을 정의해놓고 클라이언트로부터 요청과 함께 메일 발송 타입을 전달받으면 그에 따라 발송되는 식으로 하는 건 어떨까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is good idea!!
| // 지원자 이메일 보내기 | ||
| @Override | ||
| public void sendEmailsToApplicants(){ | ||
| public void sendDocumentPassEmailsToApplicants(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AdminController 코멘트와 마찬가지로 메일 발송 메소드를 하나로 정의하고 발송 타입에 따라 다르게 동작되도록 구현하면 좋을 것 같습니다.
| case FINAL_RESULT: | ||
| applicants = applicantRepository.findByStatusIn( | ||
| List.of(ApplicantStatus.INTERVIEW_PASSED, | ||
| ApplicantStatus.INTERVIEW_PASSED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
최종 결과 안내는 상태가 INTERVIEW_PASSED, INTERVIEW_FAILED 인 지원자에게 발송하도록 수정해주세요
…mailServiceTest 작성
…스트용 환경변수 파일 작성 예정
[feat] 메일 발송 기능 구현
#38
변경 내용
구현 사항