-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: 구독 발송 시간 컬럼 추가 * refactor: 아티클 전송 배치에 발송 시간 추가 * refactor: selectSubscriptionTimeRecordQuery 추가 및 전송 후 수정시 modified at, send at 추가 * refactor: SUBSCRIPTION MEMBER ID WORKBOOK ID Case 추가 * refactor: WorkbookSubscriptionAfterCompletionEventListener에 트랜잭션 제거 * refactor: 동일 날짜에 재구독시 아티클 전송하지 않도록 수정
- Loading branch information
1 parent
8158785
commit 22d9abb
Showing
9 changed files
with
127 additions
and
23 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
6 changes: 6 additions & 0 deletions
6
api-repo/src/main/kotlin/com/few/api/repo/dao/subscription/query/SelectSubscriptionQuery.kt
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,6 @@ | ||
package com.few.api.repo.dao.subscription.query | ||
|
||
data class SelectSubscriptionQuery( | ||
val memberId: Long, | ||
val workbookId: Long, | ||
) |
11 changes: 11 additions & 0 deletions
11
api-repo/src/main/kotlin/com/few/api/repo/dao/subscription/record/SubscriptionTimeRecord.kt
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,11 @@ | ||
package com.few.api.repo.dao.subscription.record | ||
|
||
import java.time.LocalDateTime | ||
|
||
data class SubscriptionTimeRecord( | ||
val memberId: Long, | ||
val workbookId: Long, | ||
val createdAt: LocalDateTime, | ||
val modifiedAt: LocalDateTime, | ||
val sendAt: LocalDateTime?, | ||
) |
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
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
2 changes: 2 additions & 0 deletions
2
data/db/migration/entity/V1.00.0.24__add_subscription_send_at.sql
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,2 @@ | ||
-- 구독 발송 시간 컬럼 추가 | ||
ALTER TABLE SUBSCRIPTION ADD COLUMN send_at TIMESTAMP; |