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
85 changed files
with
1,810 additions
and
62 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
8 changes: 8 additions & 0 deletions
8
dms-core/src/main/kotlin/team/aliens/dms/domain/bug/service/SendBugService.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.bug.service | ||
|
||
import team.aliens.dms.domain.bug.model.BugReport | ||
|
||
interface SendBugService { | ||
|
||
fun sendBugReport(bugReport: BugReport) | ||
} |
15 changes: 15 additions & 0 deletions
15
dms-core/src/main/kotlin/team/aliens/dms/domain/bug/service/SendBugServiceImpl.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.bug.service | ||
|
||
import team.aliens.dms.common.annotation.Service | ||
import team.aliens.dms.domain.bug.model.BugReport | ||
import team.aliens.dms.domain.bug.spi.SendBugPort | ||
|
||
@Service | ||
class SendBugServiceImpl( | ||
private val sendBugPort: SendBugPort | ||
) : SendBugService { | ||
|
||
override fun sendBugReport(bugReport: BugReport) { | ||
sendBugPort.sendBugReport(bugReport) | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
dms-core/src/main/kotlin/team/aliens/dms/domain/bug/spi/SendBugPort.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.bug.spi | ||
|
||
import team.aliens.dms.domain.bug.model.BugReport | ||
|
||
interface SendBugPort { | ||
|
||
fun sendBugReport(bugReport: BugReport) | ||
} |
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
...ore/src/main/kotlin/team/aliens/dms/domain/notification/spi/QueryTopicSubscriptionPort.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,9 +1,12 @@ | ||
package team.aliens.dms.domain.notification.spi | ||
|
||
import team.aliens.dms.domain.notification.model.Topic | ||
import team.aliens.dms.domain.notification.model.TopicSubscription | ||
import java.util.UUID | ||
|
||
interface QueryTopicSubscriptionPort { | ||
|
||
fun queryTopicSubscriptionsByDeviceTokenId(deviceTokenId: UUID): List<TopicSubscription> | ||
|
||
fun queryDeviceTokenIdAndTopic(deviceTokenId: UUID, topic: Topic): TopicSubscription? | ||
} |
18 changes: 18 additions & 0 deletions
18
.../src/main/kotlin/team/aliens/dms/domain/notification/usecase/ToggleSubscriptionUseCase.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,18 @@ | ||
package team.aliens.dms.domain.notification.usecase | ||
|
||
import team.aliens.dms.common.annotation.UseCase | ||
import team.aliens.dms.domain.notification.model.Topic | ||
import team.aliens.dms.domain.notification.service.NotificationService | ||
|
||
@UseCase | ||
class ToggleSubscriptionUseCase( | ||
private val notificationService: NotificationService | ||
) { | ||
|
||
fun execute(deviceToken: String, topic: Topic) { | ||
notificationService.toggleSubscription( | ||
token = deviceToken, | ||
topic = topic | ||
) | ||
} | ||
} |
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
11 changes: 11 additions & 0 deletions
11
...re/src/main/kotlin/team/aliens/dms/domain/volunteer/dto/request/CreateVolunteerRequest.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 team.aliens.dms.domain.volunteer.dto.request | ||
|
||
data class CreateVolunteerRequest( | ||
val name: String, | ||
val content: String, | ||
val availableSex: String, | ||
val availableGrade: String, | ||
val score: Int, | ||
val optionalScore: Int, | ||
val maxApplicants: Int | ||
) |
14 changes: 14 additions & 0 deletions
14
...re/src/main/kotlin/team/aliens/dms/domain/volunteer/dto/request/UpdateVolunteerRequest.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,14 @@ | ||
package team.aliens.dms.domain.volunteer.dto.request | ||
|
||
import java.util.UUID | ||
|
||
data class UpdateVolunteerRequest( | ||
val name: String, | ||
val content: String, | ||
val availableSex: String, | ||
val availableGrade: String, | ||
val score: Int, | ||
val optionalScore: Int, | ||
val maxApplicants: Int, | ||
val volunteerId: UUID | ||
) |
7 changes: 7 additions & 0 deletions
7
...e/src/main/kotlin/team/aliens/dms/domain/volunteer/dto/response/ApplyVolunteerResponse.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,7 @@ | ||
package team.aliens.dms.domain.volunteer.dto.response | ||
|
||
import java.util.UUID | ||
|
||
data class ApplyVolunteerResponse( | ||
val volunteerApplicationId: UUID | ||
) |
Oops, something went wrong.