-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : 문제 생성 시의 알림 로직 제거 및 문제 시작 시 알림 전송 추가 (#133)
* feat : 매일 정각에 시작하는 문제에 대해 알림 전송하는 스케줄러 추가 * feat : 문제 시작 시 알림 전송하는 scheduler 생성 - 문제 생성 시, 문제 시작 날짜가 당일일 경우 알림 전송 - 매일 자정, 문제가 시작하는 당일이면 그룹 멤버들에게 알림 전송 - 알림 메세지 enum 생성 * test : 시작되는 문제들에 대해 그룹 멤버들에게 알림 전송 테스트 작성 * test : 문제 생성 시 알림 관련 테스트 수정 * refactor : 알림 전송 실패 시, 로그 레벨 warn으로 수정
- Loading branch information
Showing
5 changed files
with
92 additions
and
18 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
15 changes: 15 additions & 0 deletions
15
src/main/java/com/gamzabat/algohub/feature/notification/enums/NotificationMessage.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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.gamzabat.algohub.feature.notification.enums; | ||
|
||
public enum NotificationMessage { | ||
PROBLEM_STARTED("[%s] 문제가 시작되었습니다! 지금 도전해보세요!"); | ||
|
||
private final String message; | ||
|
||
NotificationMessage(String message) { | ||
this.message = message; | ||
} | ||
|
||
public String format(String... args) { | ||
return String.format(message, args); | ||
} | ||
} |
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