Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ private CorsConfiguration getDefaultCorsConfiguration() {
"http://localhost:3000",
"http://localhost:3001",
// ν”„λ‘ νŠΈ ν…ŒμŠ€νŠΈ
"dev-ceos.netlify.app",
"dev-admin-ceos.netlify.app",
"https://dev-ceos.netlify.app/",
"https://dev-admin-ceos.netlify.app/",
// ν”„λ‘ νŠΈ 운영
USER_URL,
ADMIN_URL,
Expand Down
32 changes: 27 additions & 5 deletions src/main/java/ceos/backend/infra/ses/AwsSESMailGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@
import ceos.backend.global.common.entity.Part;
import ceos.backend.global.util.InterviewDateTimeConvertor;
import ceos.backend.global.util.ParsedDurationConvertor;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;
import org.thymeleaf.context.Context;

import java.time.format.DateTimeFormatter;
import java.util.*;
import java.util.stream.Collectors;

@Component
@RequiredArgsConstructor
public class AwsSESMailGenerator {
Expand Down Expand Up @@ -135,8 +134,12 @@ public String generatePasswordMailSubject() {
}

public Context generateRecruitMailContext(AwsSESRecruitMail awsSESRecruitMail) {
Recruitment recruitment = recruitmentHelper.takeRecruitment();
Context context = new Context();
context.setVariable("email", EmailInfo.from(awsSESRecruitMail));
context.setVariable("generation", recruitment.getGeneration());

addRecruitDateToContext(context, recruitment);

return context;
}
Expand All @@ -145,4 +148,23 @@ public String generateRecruitMailSubject() {
Recruitment recruitment = recruitmentHelper.takeRecruitment();
return "[CEOS] μ„Έμ˜€μŠ€ " + recruitment.getGeneration() + "κΈ° λ¦¬ν¬λ£¨νŒ…μ„ μ‹œμž‘ν•©λ‹ˆλ‹€!";
}

private void addRecruitDateToContext(Context context, Recruitment recruitment) {
// λͺ¨μ§‘ 일정 ν¬λ§·νŒ… (ν•œκ΅­μ–΄ μš”μΌ)
DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("Mμ›” d일 (E)", Locale.KOREAN);
DateTimeFormatter dateTimeFormatter =
DateTimeFormatter.ofPattern("Mμ›” d일 (E) HH:mm", Locale.KOREAN);

context.setVariable(
"startDateDoc", recruitment.getStartDateDoc().format(dateFormatter));
context.setVariable("endDateDoc", recruitment.getEndDateDoc().format(dateTimeFormatter));
context.setVariable(
"resultDateDoc", recruitment.getResultDateDoc().format(dateFormatter));
context.setVariable(
"startDateInterview", recruitment.getStartDateInterview().format(dateFormatter));
context.setVariable(
"endDateInterview", recruitment.getEndDateInterview().format(dateFormatter));
context.setVariable(
"resultDateFinal", recruitment.getResultDateFinal().format(dateFormatter));
}
}
14 changes: 8 additions & 6 deletions src/main/resources/templates/component/recruit.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@
</span>

<span style="font-weight: 600;">[μ ‘μˆ˜κΈ°κ°„]</span>
8μ›” 20일 (수) ~ 8μ›” 27일 (수) 24:00 <br>
<span th:text="${startDateDoc}">8μ›” 20일 (수)</span> ~
<span th:text="${endDateDoc}">8μ›” 27일 (수) 24:00</span> <br>
<span style="font-weight: 600;">[μ„œλ₯˜λ°œν‘œ]</span>
8μ›” 29일 (금) <br>
<span th:text="${resultDateDoc}">8μ›” 29일 (금)</span> <br>
<span style="font-weight: 600;">[κ°œλ³„λ©΄μ ‘]</span>
8μ›” 30일 (ν† ) ~ 8μ›” 31일 (일) <br>
<span th:text="${startDateInterview}">8μ›” 30일 (ν† )</span> ~
<span th:text="${endDateInterview}">8μ›” 31일 (일)</span> <br>
<span style="font-weight: 600;">[μ΅œμ’…λ°œν‘œ]</span>
9μ›” 1일 (μ›”) <br>
<span th:text="${resultDateFinal}">9μ›” 1일 (μ›”)</span> <br>
<br> <br>


Expand Down Expand Up @@ -88,11 +90,11 @@
<span style="font-weight: 600;">μˆ˜μš”μΌ</span>
μ˜€ν›„ 7μ‹œ (μ•½ 2μ‹œκ°„ μ§„ν–‰) <br>

https://rapid-coriander-7d3.notion.site/CEOS-22-24f60d5f3087804aa26dc842ecb1bf1e?source=copy_link <br>
https://maddening-bottle-962.notion.site/CEOS-23-2ef11100f5bc8142bc7beef39c257872 <br>

<span style="font-weight: 600;">[μŠ€ν„°λ””]</span>
νŒŒνŠΈλ³„ μš”μΌ/μ‹œκ°„ 상이 <br>
https://rapid-coriander-7d3.notion.site/CEOS-22-24f60d5f30878030988dfcce145d13a4?source=copy_link <br>
https://maddening-bottle-962.notion.site/CEOS-23-2fb11100f5bc80b99025f388207fcfe2 <br>
<br> <br>

<span class="blue-title"
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/templates/component/recruitGreeting.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
font-size: 24px;
line-height: 150%;
color: #3E4CF7;">
<span>CEOS</span>
<span>22</span>
<span>CEOS </span>
<span th:text="${generation}">23</span>
<span>κΈ° λ¦¬ν¬λ£¨νŒ…μ„ μ‹œμž‘ν•©λ‹ˆλ‹€!</span>
</div>

Expand All @@ -43,7 +43,7 @@

<span>
μ•ˆλ…•ν•˜μ„Έμš”. μ‹ μ΄Œ μ—°ν•© IT 창업동아리 CEOSμž…λ‹ˆλ‹€.<br>
CEOS 22κΈ° μ„œλ₯˜ 지원이 μ‹œμž‘λ˜μ—ˆμŠ΅λ‹ˆλ‹€! <br> <br>
CEOS <span th:text="${generation}">23</span>κΈ° μ„œλ₯˜ 지원이 μ‹œμž‘λ˜μ—ˆμŠ΅λ‹ˆλ‹€! <br> <br>
μ„Έμ˜€μŠ€λŠ” 기획, λ””μžμΈ, 개발 μ—­λŸ‰μ„ κ²ΈλΉ„ν•œ μ—΄μ • μžˆλŠ” λŒ€ν•™μƒλ“€μ΄ λͺ¨μ—¬ 창업을 κ²½ν—˜ν•˜κ³  κΏˆμ„ μ‹€ν˜„ν•  수 μžˆλŠ” κ³΅κ°„μž…λ‹ˆλ‹€.
</span>

Expand Down