forked from wine-area/DMS-Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
54 changed files
with
588 additions
and
351 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
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
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
8 changes: 8 additions & 0 deletions
8
...e/src/main/kotlin/team/aliens/dms/domain/notification/service/CheckNotificationService.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,8 @@ | ||
package team.aliens.dms.domain.notification.service | ||
|
||
import java.util.UUID | ||
|
||
interface CheckNotificationService { | ||
|
||
fun checkDeviceTokenByUserId(userId: UUID): Boolean | ||
} |
15 changes: 15 additions & 0 deletions
15
...c/main/kotlin/team/aliens/dms/domain/notification/service/CheckNotificationServiceImpl.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,15 @@ | ||
package team.aliens.dms.domain.notification.service | ||
|
||
import team.aliens.dms.common.annotation.Service | ||
import team.aliens.dms.domain.notification.spi.QueryDeviceTokenPort | ||
import java.util.UUID | ||
|
||
@Service | ||
class CheckNotificationServiceImpl( | ||
private val deviceTokenPort: QueryDeviceTokenPort | ||
) : CheckNotificationService { | ||
|
||
override fun checkDeviceTokenByUserId(userId: UUID): Boolean { | ||
return deviceTokenPort.existsDeviceTokenByUserId(userId) | ||
} | ||
} |
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
3 changes: 1 addition & 2 deletions
3
...ore/src/main/kotlin/team/aliens/dms/domain/notification/service/GetNotificationService.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
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
3 changes: 3 additions & 0 deletions
3
...e/src/main/kotlin/team/aliens/dms/domain/notification/spi/CommandTopicSubscriptionPort.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,10 +1,13 @@ | ||
package team.aliens.dms.domain.notification.spi | ||
|
||
import team.aliens.dms.domain.notification.model.TopicSubscription | ||
import java.util.UUID | ||
|
||
interface CommandTopicSubscriptionPort { | ||
|
||
fun saveTopicSubscription(topicSubscription: TopicSubscription): TopicSubscription | ||
|
||
fun saveAllTopicSubscriptions(topicSubscriptions: List<TopicSubscription>) | ||
|
||
fun deleteAllByDeviceTokenId(deviceTokenId: UUID) | ||
} |
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
3 changes: 1 addition & 2 deletions
3
...re/src/main/kotlin/team/aliens/dms/domain/notification/spi/QueryNotificationOfUserPort.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,12 +1,11 @@ | ||
package team.aliens.dms.domain.notification.spi | ||
|
||
import team.aliens.dms.common.dto.PageData | ||
import team.aliens.dms.domain.notification.model.NotificationOfUser | ||
import java.util.UUID | ||
|
||
interface QueryNotificationOfUserPort { | ||
|
||
fun queryNotificationOfUserByUserId(userId: UUID, pageData: PageData): List<NotificationOfUser> | ||
fun queryNotificationOfUserByUserId(userId: UUID): List<NotificationOfUser> | ||
|
||
fun queryNotificationOfUserById(notificationOfUserId: UUID): NotificationOfUser? | ||
} |
Oops, something went wrong.