-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: 필드 주입 대신 생성자 주입으로 변경 * refactor: 개행 및 EOL 추가 * refactor: 서류, 최종 메일 분리 및 비동기 처리 * refactor: 빌더 생성자로 변경 * test: displayName 추가 * fix: 스레드 작업 대기 시간 연장 * feat: 메일 예외 추가 * feat: 메일 병렬처리 추가 * fix: 대기시간 연장 * refactor: 메일 예약, 메일 전송 로직 분리 * fix: 메일 전송 테스트 비활성화 * fix: setter 추가 * feat: 서류 합격 메일 전송 * fix: 템플릿 정구 수 * feat: 메일 전송 비동기, 40개 배치 전송 * feat: 메일 타임아웃 설정 * fix: 비동기 스레드풀 max 변경 * fix: 메일 패키지 변경 * fix: Mail record에서 class로 변경 * fix: batch size 변경 * fix: 메일 수신자 타입 변경
- Loading branch information
Showing
13 changed files
with
81 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package land.leets.domain.mail.domain; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
public class Mail { | ||
|
||
private final String title; | ||
private final String to; | ||
private final String body; | ||
} |
8 changes: 4 additions & 4 deletions
8
.../global/mail/exception/MailException.java → .../domain/mail/exception/MailException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package land.leets.global.mail.exception; | ||
package land.leets.domain.mail.exception; | ||
|
||
import land.leets.global.error.ErrorCode; | ||
import land.leets.global.error.exception.ServiceException; | ||
|
||
public class MailException extends ServiceException { | ||
|
||
public MailException() { | ||
super(ErrorCode.MAIL_SEND_FAIL); | ||
} | ||
public MailException() { | ||
super(ErrorCode.MAIL_SEND_FAIL); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
...a/land/leets/global/mail/MailManager.java → ...eets/domain/mail/service/MailManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 1 addition & 3 deletions
4
.../land/leets/global/cron/SendMailCron.java → ...ets/domain/mail/usecase/SendMailCron.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,8 @@ | |
import land.leets.domain.application.type.ApplicationStatus; | ||
import land.leets.domain.application.type.Position; | ||
import land.leets.domain.application.type.SubmitStatus; | ||
import land.leets.domain.mail.domain.Mail; | ||
import land.leets.domain.user.domain.User; | ||
import land.leets.global.mail.dto.MailDto; | ||
|
||
public class TestFixture { | ||
|
||
|
@@ -19,5 +19,5 @@ public class TestFixture { | |
"schedule", "capability", "conflict", "passion", LocalDateTime.now(), | ||
ApplicationStatus.PASS, SubmitStatus.SUBMIT); | ||
|
||
public static MailDto mailDto = new MailDto("제목", new String[] {"[email protected]"}, "body"); | ||
public static Mail mail = new Mail("제목", new String[] {"[email protected]"}, "body"); | ||
} |