-
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.
Merge branch 'dev' into feat/#412_belljun3395
- Loading branch information
Showing
14 changed files
with
170 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
5 changes: 5 additions & 0 deletions
5
...ain/kotlin/com/few/api/repo/dao/subscription/command/InsertWorkbookSubscriptionCommand.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 |
---|---|---|
@@ -1,6 +1,11 @@ | ||
package com.few.api.repo.dao.subscription.command | ||
|
||
import com.few.data.common.code.DayCode | ||
import java.time.LocalTime | ||
|
||
data class InsertWorkbookSubscriptionCommand( | ||
val workbookId: Long, | ||
val memberId: Long, | ||
val sendDay: String? = DayCode.MON_TUE_WED_THU_FRI.code, | ||
val sendTime: LocalTime? = LocalTime.of(8, 0), | ||
) |
5 changes: 5 additions & 0 deletions
5
.../main/kotlin/com/few/api/repo/dao/subscription/query/SelectSubscriptionSendStatusQuery.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,5 @@ | ||
package com.few.api.repo.dao.subscription.query | ||
|
||
data class SelectSubscriptionSendStatusQuery( | ||
val memberId: Long, | ||
) |
10 changes: 10 additions & 0 deletions
10
api-repo/src/main/kotlin/com/few/api/repo/dao/subscription/record/SubscriptionSendStatus.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,10 @@ | ||
package com.few.api.repo.dao.subscription.record | ||
|
||
import java.time.LocalTime | ||
|
||
data class SubscriptionSendStatus( | ||
val memberId: Long, | ||
val workbookId: Long, | ||
val sendDay: String, | ||
val sendTime: LocalTime, | ||
) |
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
17 changes: 17 additions & 0 deletions
17
email/src/main/kotlin/com/few/email/sender/provider/ArticleAwsSESEmailSendProvider.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,17 @@ | ||
package com.few.email.sender.provider | ||
|
||
import com.amazonaws.services.simpleemail.AmazonSimpleEmailService | ||
import org.springframework.stereotype.Component | ||
|
||
@Component | ||
class ArticleAwsSESEmailSendProvider( | ||
amazonSimpleEmailService: AmazonSimpleEmailService, | ||
javaEmailSendProvider: JavaEmailSendProvider, | ||
) : AwsSESEmailSendProvider( | ||
amazonSimpleEmailService, | ||
javaEmailSendProvider | ||
) { | ||
override fun getWithConfigurationSetName(): String { | ||
return "few-article-configuration-set" | ||
} | ||
} |
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
5 changes: 4 additions & 1 deletion
5
email/src/main/kotlin/com/few/email/sender/provider/EmailSendProvider.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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
package com.few.email.sender.provider | ||
|
||
interface EmailSendProvider { | ||
fun sendEmail(from: String, to: String, subject: String, message: String) | ||
/** | ||
* @return 전송한 이메일 식벽을 위한 값 | ||
*/ | ||
fun sendEmail(from: String, to: String, subject: String, message: String): String | ||
} |
Oops, something went wrong.