Skip to content

Commit 88b853d

Browse files
authored
Merge pull request #237 from CEOS-Developers/dev
merge dev
2 parents a60bb5e + 4bf8202 commit 88b853d

4 files changed

Lines changed: 40 additions & 16 deletions

File tree

src/main/java/ceos/backend/global/config/WebSecurityConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ private CorsConfiguration getDefaultCorsConfiguration() {
193193
"http://localhost:3000",
194194
"http://localhost:3001",
195195
// 프론트 테스트
196-
"dev-ceos.netlify.app",
197-
"dev-admin-ceos.netlify.app",
196+
"https://dev-ceos.netlify.app/",
197+
"https://dev-admin-ceos.netlify.app/",
198198
// 프론트 운영
199199
USER_URL,
200200
ADMIN_URL,

src/main/java/ceos/backend/infra/ses/AwsSESMailGenerator.java

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,14 @@
1616
import ceos.backend.global.common.entity.Part;
1717
import ceos.backend.global.util.InterviewDateTimeConvertor;
1818
import ceos.backend.global.util.ParsedDurationConvertor;
19-
import java.util.ArrayList;
20-
import java.util.Comparator;
21-
import java.util.List;
22-
import java.util.Objects;
23-
import java.util.stream.Collectors;
2419
import lombok.RequiredArgsConstructor;
2520
import org.springframework.stereotype.Component;
2621
import org.thymeleaf.context.Context;
2722

23+
import java.time.format.DateTimeFormatter;
24+
import java.util.*;
25+
import java.util.stream.Collectors;
26+
2827
@Component
2928
@RequiredArgsConstructor
3029
public class AwsSESMailGenerator {
@@ -135,8 +134,12 @@ public String generatePasswordMailSubject() {
135134
}
136135

137136
public Context generateRecruitMailContext(AwsSESRecruitMail awsSESRecruitMail) {
137+
Recruitment recruitment = recruitmentHelper.takeRecruitment();
138138
Context context = new Context();
139139
context.setVariable("email", EmailInfo.from(awsSESRecruitMail));
140+
context.setVariable("generation", recruitment.getGeneration());
141+
142+
addRecruitDateToContext(context, recruitment);
140143

141144
return context;
142145
}
@@ -145,4 +148,23 @@ public String generateRecruitMailSubject() {
145148
Recruitment recruitment = recruitmentHelper.takeRecruitment();
146149
return "[CEOS] 세오스 " + recruitment.getGeneration() + "기 리크루팅을 시작합니다!";
147150
}
151+
152+
private void addRecruitDateToContext(Context context, Recruitment recruitment) {
153+
// 모집 일정 포맷팅 (한국어 요일)
154+
DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("M월 d일 (E)", Locale.KOREAN);
155+
DateTimeFormatter dateTimeFormatter =
156+
DateTimeFormatter.ofPattern("M월 d일 (E) HH:mm", Locale.KOREAN);
157+
158+
context.setVariable(
159+
"startDateDoc", recruitment.getStartDateDoc().format(dateFormatter));
160+
context.setVariable("endDateDoc", recruitment.getEndDateDoc().format(dateTimeFormatter));
161+
context.setVariable(
162+
"resultDateDoc", recruitment.getResultDateDoc().format(dateFormatter));
163+
context.setVariable(
164+
"startDateInterview", recruitment.getStartDateInterview().format(dateFormatter));
165+
context.setVariable(
166+
"endDateInterview", recruitment.getEndDateInterview().format(dateFormatter));
167+
context.setVariable(
168+
"resultDateFinal", recruitment.getResultDateFinal().format(dateFormatter));
169+
}
148170
}

src/main/resources/templates/component/recruit.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@
3636
</span>
3737

3838
<span style="font-weight: 600;">[접수기간]</span>
39-
8월 20일 (수) ~ 8월 27일 (수) 24:00 <br>
39+
<span th:text="${startDateDoc}">8월 20일 (수)</span> ~
40+
<span th:text="${endDateDoc}">8월 27일 (수) 24:00</span> <br>
4041
<span style="font-weight: 600;">[서류발표]</span>
41-
8월 29일 (금) <br>
42+
<span th:text="${resultDateDoc}">8월 29일 (금)</span> <br>
4243
<span style="font-weight: 600;">[개별면접]</span>
43-
8월 30일 (토) ~ 8월 31일 (일) <br>
44+
<span th:text="${startDateInterview}">8월 30일 (토)</span> ~
45+
<span th:text="${endDateInterview}">8월 31일 (일)</span> <br>
4446
<span style="font-weight: 600;">[최종발표]</span>
45-
9월 1일 (월) <br>
47+
<span th:text="${resultDateFinal}">9월 1일 (월)</span> <br>
4648
<br> <br>
4749

4850

@@ -88,11 +90,11 @@
8890
<span style="font-weight: 600;">수요일</span>
8991
오후 7시 (약 2시간 진행) <br>
9092

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

9395
<span style="font-weight: 600;">[스터디]</span>
9496
파트별 요일/시간 상이 <br>
95-
https://rapid-coriander-7d3.notion.site/CEOS-22-24f60d5f30878030988dfcce145d13a4?source=copy_link <br>
97+
https://maddening-bottle-962.notion.site/CEOS-23-2fb11100f5bc80b99025f388207fcfe2 <br>
9698
<br> <br>
9799

98100
<span class="blue-title"

src/main/resources/templates/component/recruitGreeting.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
font-size: 24px;
2222
line-height: 150%;
2323
color: #3E4CF7;">
24-
<span>CEOS</span>
25-
<span>22</span>
24+
<span>CEOS </span>
25+
<span th:text="${generation}">23</span>
2626
<span>기 리크루팅을 시작합니다!</span>
2727
</div>
2828

@@ -43,7 +43,7 @@
4343

4444
<span>
4545
안녕하세요. 신촌 연합 IT 창업동아리 CEOS입니다.<br>
46-
CEOS 22기 서류 지원이 시작되었습니다! <br> <br>
46+
CEOS <span th:text="${generation}">23</span> 서류 지원이 시작되었습니다! <br> <br>
4747
세오스는 기획, 디자인, 개발 역량을 겸비한 열정 있는 대학생들이 모여 창업을 경험하고 꿈을 실현할 수 있는 공간입니다.
4848
</span>
4949

0 commit comments

Comments
 (0)