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
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/---feature-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ assignees: ''

---

# πŸš€ Feature - <!--{ μž‘μ—… λ‚΄μš© }-->

### πŸ“ Description

---
Expand Down
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/---refactor-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ assignees: ''

---

# πŸ”¨ Refactor - <!--{ μž‘μ—… λ‚΄μš© }-->

### πŸ“ Description

---
Expand Down
2 changes: 0 additions & 2 deletions .github/ISSUE_TEMPLATE/-bug-report-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ assignees: ''

---

# 🐞 Bug - <!--{ μž‘μ—… λ‚΄μš© }-->

### πŸ•΅οΈβ€β™€οΈ Condition

---
Expand Down
11 changes: 10 additions & 1 deletion docker-compose.dev.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
version: "3"

x-logging: &default-logging
driver: json-file
options:
max-size: "20m"
max-file: "3"

services:
backend:
image: ceos17/ceos-backend-dev
container_name: backend
hostname: backend
logging: *default-logging
env_file:
- .env
expose:
Expand All @@ -14,6 +21,7 @@ services:

nginx:
image: ceos17/ceos-nginx-dev
logging: *default-logging
depends_on:
- backend
restart: always
Expand All @@ -24,6 +32,7 @@ services:
image: mysql:latest
container_name: mysql
restart: always
logging: *default-logging
environment:
MYSQL_DATABASE: ceos-dev
MYSQL_USER: ${DB_USERNAME}
Expand All @@ -46,6 +55,6 @@ services:
image: redis:latest
container_name: redis
hostname: redis
logging: *default-logging
ports:
- "6379:6379"

11 changes: 10 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
version: "3"

x-logging: &default-logging
driver: json-file
options:
max-size: "20m"
max-file: "3"

services:
backend:
image: ceos17/ceos-backend
container_name: backend
hostname: backend
logging: *default-logging
env_file:
- .env
expose:
- "8080"

nginx:
image: ceos17/ceos-nginx
logging: *default-logging
depends_on:
- backend
restart: always
Expand All @@ -22,5 +30,6 @@ services:
image: redis:latest
container_name: redis
hostname: redis
logging: *default-logging
ports:
- "6379:6379"
- "6379:6379"
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void deleteActivity(@PathVariable Long id) {
}

@Operation(summary = "ν™œλ™ 이미지 url μƒμ„±ν•˜κΈ°")
@GetMapping("/image")
@PostMapping("/image")
public AwsS3Url getImageUrl() {
log.info("ν™œλ™ 이미지 url μƒμ„±ν•˜κΈ°");
return activityService.getImageUrl();
Expand Down
14 changes: 4 additions & 10 deletions src/main/java/ceos/backend/domain/admin/AdminController.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
public class AdminController {

private final AdminService adminService;
private static final String MOBILE = "mobile";
private static final String WEB = "web";

@Operation(summary = "λ‹‰λ„€μž„ 확인")
@PostMapping("/username")
Expand All @@ -41,11 +39,9 @@ public void signUp(@RequestBody @Valid SignUpRequest signUpRequest) {

@Operation(summary = "둜그인")
@PostMapping("/signin")
public TokenResponse signIn(
HttpServletRequest request, @RequestBody @Valid SignInRequest signInRequest) {
public TokenResponse signIn(@RequestBody @Valid SignInRequest signInRequest) {
log.info("둜그인");
String device = request.getHeader("User-Agent").contains("mobile") ? MOBILE : WEB;
return adminService.signIn(device, signInRequest);
return adminService.signIn(signInRequest);
}

@Operation(summary = "아이디 μ°ΎκΈ°")
Expand Down Expand Up @@ -73,11 +69,9 @@ public void resetPwd(

@Operation(summary = "λ‘œκ·Έμ•„μ›ƒ")
@PostMapping("/logout")
public void logout(
HttpServletRequest request, @AuthenticationPrincipal AdminDetails adminUser) {
public void logout(@AuthenticationPrincipal AdminDetails adminUser) {
log.info("λ‘œκ·Έμ•„μ›ƒ");
String device = request.getHeader("User-Agent").contains("mobile") ? MOBILE : WEB;
adminService.logout(device, adminUser);
adminService.logout(adminUser);
}

@Operation(summary = "토큰 μž¬λ°œκΈ‰")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public void resetPwd(ResetPwdRequest resetPwdRequest, Admin admin) {
}

public void matchesRefreshToken(String refreshToken, Admin admin) {
String savedToken = redisTemplate.opsForValue().get(admin.getId().toString());
String savedToken = redisTemplate.opsForValue().get("refresh:" + admin.getId().toString());
if (savedToken == null || !savedToken.equals(refreshToken)) {
throw RefreshTokenNotFound.EXCEPTION;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ public void signUp(SignUpRequest signUpRequest) {
}

@Transactional
public TokenResponse signIn(String device, SignInRequest signInRequest) {
public TokenResponse signIn(SignInRequest signInRequest) {

final Admin admin = adminHelper.findForSignIn(signInRequest);
final Authentication authentication = adminHelper.adminAuthorizationInput(admin);

adminHelper.checkRole(admin);

String redisKey = admin.getId().toString() + ":" + device;
String redisKey = "refresh:" + admin.getId().toString();

// 토큰 λ°œκΈ‰
final String accessToken = tokenProvider.createAccessToken(admin.getId(), authentication);
Expand Down Expand Up @@ -100,10 +100,10 @@ public void resetPwd(ResetPwdRequest resetPwdRequest, AdminDetails adminUser) {
}

@Transactional
public void logout(String device, AdminDetails adminUser) {
public void logout(AdminDetails adminUser) {
final Admin admin = adminUser.getAdmin();

String redisKey = admin.getId().toString() + ":" + device;
String redisKey = "refresh:" + admin.getId().toString();

// λ ˆλ””μŠ€ μ‚­μ œ
tokenProvider.deleteRefreshToken(redisKey);
Expand All @@ -121,10 +121,13 @@ public TokenResponse reissueToken(RefreshTokenRequest refreshTokenRequest) {
adminHelper.matchesRefreshToken(refreshToken, admin);

// 토큰 μž¬λ°œκΈ‰
String redisKey = "refresh:" + admin.getId();
final String newAccessToken =
tokenProvider.createAccessToken(admin.getId(), authentication);
final String newRefreshToken =
tokenProvider.createRefreshToken(admin.getId(), authentication, redisKey);

return adminMapper.toTokenResponse(newAccessToken, refreshToken);
return adminMapper.toTokenResponse(newAccessToken, newRefreshToken);
}

@Transactional(readOnly = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void deleteManagement(@PathVariable(name = "managerId") Long managerId) {
}

@Operation(summary = "μž„μ›μ§„ 이미지 url μƒμ„±ν•˜κΈ°")
@GetMapping("/image")
@PostMapping("/image")
public AwsS3Url getImageUrl() {
log.info("μž„μ›μ§„ 이미지 url μƒμ„±ν•˜κΈ°");
return managementService.getImageUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void deleteActivity(@PathVariable Long projectId) {
}

@Operation(summary = "ν”„λ‘œμ νŠΈ 이미지 url μƒμ„±ν•˜κΈ°")
@GetMapping("/image")
@PostMapping("/image")
public AwsS3Url getImageUrl() {
log.info("ν”„λ‘œμ νŠΈ 이미지 url μƒμ„±ν•˜κΈ°");
return projectService.getImageUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void deleteSponsor(@PathVariable(name = "sponsorId") Long sponsorId) {
}

@Operation(summary = "μŠ€ν°μ„œ 이미지 url μƒμ„±ν•˜κΈ°")
@GetMapping("/image")
@PostMapping("/image")
public AwsS3Url getImageUrl() {
log.info("μŠ€ν°μ„œ 이미지 url μƒμ„±ν•˜κΈ°");
return sponsorService.getImageUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void deleteManagement(@PathVariable(name = "startupId") Long startupId) {
}

@Operation(summary = "μ„œλΉ„μŠ€ 이미지 url μƒμ„±ν•˜κΈ°")
@GetMapping("/image")
@PostMapping("/image")
public AwsS3Url getImageUrl() {
log.info("μ„œλΉ„μŠ€ 이미지 url μƒμ„±ν•˜κΈ°");
return startupService.getImageUrl();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,12 @@ private void addRecruitDateToContext(Context context, Recruitment recruitment) {

context.setVariable("startDateDoc", recruitment.getStartDateDoc().format(dateFormatter));
context.setVariable("endDateDoc", recruitment.getEndDateDoc().format(dateTimeFormatter));
context.setVariable("resultDateDoc", recruitment.getResultDateDoc().format(dateFormatter));
context.setVariable("resultDateDoc", recruitment.getResultDateDoc().format(dateTimeFormatter));
context.setVariable(
"startDateInterview", recruitment.getStartDateInterview().format(dateFormatter));
context.setVariable(
"endDateInterview", recruitment.getEndDateInterview().format(dateFormatter));
context.setVariable(
"resultDateFinal", recruitment.getResultDateFinal().format(dateFormatter));
"resultDateFinal", recruitment.getResultDateFinal().format(dateTimeFormatter));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
line-height: 170%;
color: #232527;"
th:text="${ceosQuestionInfo.otDate}">
μ˜€ν‹° λ‚ μ§œ
ν•˜μ΄(from. 23κΈ° λ°±μ—”λ“œ 파트μž₯)
</span>
</div>

Expand All @@ -55,7 +55,7 @@
line-height: 170%;
color: #232527;"
th:text="${ceosQuestionInfo.demodayDate}">
데λͺ¨
λͺ°λΌ(from. 23κΈ° ν”„λ‘ νŠΈνŒŒνŠΈμž₯)
</span>
</div>

Expand All @@ -81,7 +81,7 @@
line-height: 170%;
color: #232527;"
th:text="${ceosQuestionInfo.otherActivities}">
백수
백수(from. 23κΈ° 회μž₯)
</span>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/component/copyright.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
font-size: 20px;
line-height: 150%;
color: #D6DADF;">
Β© 2016-2026 Ceos ALL RIGHTS RESERVED.
Β© 2016-2026 CEOS ALL RIGHTS RESERVED.
</span>
</div>
</html>
4 changes: 2 additions & 2 deletions src/main/resources/templates/component/greeting.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
color: #3E4CF7;"
th:text="${greetInfo.generation}"
>
22</span>
24</span>
<span style="
text-decoration: none;
outline: 0px;
Expand Down Expand Up @@ -114,7 +114,7 @@
line-height: 170%;
color: #232527;"
th:text="${greetInfo.generation}">
22
24
</span>
<span style="
text-decoration: none;
Expand Down
16 changes: 8 additions & 8 deletions src/main/resources/templates/component/recruit.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@
</span>

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


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

https://maddening-bottle-962.notion.site/CEOS-23-2ef11100f5bc8142bc7beef39c257872 <br>
https://app.notion.com/p/CEOS-24-615ac01f4e5c835c9337018ff67f083d?source=copy_link <br>

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

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

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

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

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/templates/component/title.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div style="padding: 0px 5px">
<img
height="26px"
src="https://ceos-bucket-20.s3.ap-northeast-2.amazonaws.com/mail/CEOSlogo.png"
src="https://ceos-storage-dev.s3.ap-northeast-2.amazonaws.com/mail/CEOSlogo.png"
/>
</div>
</div>
Expand Down
Loading