Skip to content

Commit b40d221

Browse files
committed
dev : Add email body generation factory class
1 parent 317afb9 commit b40d221

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package org.benchmarker.bmcontroller.mail.common.factory;
2+
3+
public interface EmailBodyGenerator {
4+
5+
String createBody(String... args);
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package org.benchmarker.bmcontroller.mail.common.factory;
2+
3+
public class EmailVerificationFactory implements EmailBodyGenerator {
4+
5+
@Override
6+
public String createBody(String... args) {
7+
8+
String authNum = args[0];
9+
10+
return "안녕하세요!\n\n, 회원 가입을 위한 인증 코드를 안내드립니다. 아래의 인증 코드를 입력하여 계정을 활성화하세요:\n\n인증 코드: " + authNum;
11+
}
12+
}

0 commit comments

Comments
 (0)