generated from semicolondsm/Semicolon_Repository_Generator
-
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.
Merge pull request #211 from team-xquare/210-topic-enum
- Loading branch information
Showing
21 changed files
with
96 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,6 @@ class Category( | |
val destination: String, | ||
|
||
val defaultActivated: Boolean, | ||
|
||
val topic: Topic, | ||
) |
10 changes: 10 additions & 0 deletions
10
notification-domain/src/main/kotlin/io/github/v1servicenotification/category/Topic.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 io.github.v1servicenotification.category | ||
|
||
enum class Topic( | ||
name: String, | ||
) { | ||
SCHEDULE("일정"), | ||
FEED("피드"), | ||
APPLICATION("신청"), | ||
ALL("전체"), | ||
} |
3 changes: 2 additions & 1 deletion
3
...cation-domain/src/main/kotlin/io/github/v1servicenotification/category/api/CategoryApi.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,11 @@ | ||
package io.github.v1servicenotification.category.api | ||
|
||
import io.github.v1servicenotification.category.Topic | ||
import io.github.v1servicenotification.category.api.response.CategoryListResponse | ||
import java.util.UUID | ||
|
||
interface CategoryApi { | ||
fun queryNotificationCategory(defaultActivated: Boolean): CategoryListResponse | ||
fun createCategory(name: String, destination: String, defaultActivated: Boolean) | ||
fun createCategory(name: String, destination: String, defaultActivated: Boolean, topic: Topic) | ||
fun removeCategory(categoryId: UUID) | ||
} |
2 changes: 2 additions & 0 deletions
2
.../src/main/kotlin/io/github/v1servicenotification/category/api/response/CategoryElement.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,11 @@ | ||
package io.github.v1servicenotification.category.api.response | ||
|
||
import io.github.v1servicenotification.category.Topic | ||
import java.util.UUID | ||
|
||
class CategoryElement( | ||
val id: UUID, | ||
val name: String, | ||
val destination: String, | ||
val 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
4 changes: 2 additions & 2 deletions
4
...in/src/main/kotlin/io/github/v1servicenotification/detail/spi/QueryDetailRepositorySpi.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,11 +1,11 @@ | ||
package io.github.v1servicenotification.detail.spi | ||
|
||
import io.github.v1servicenotification.annotation.Spi | ||
import io.github.v1servicenotification.detail.spi.dto.DetailModel | ||
import io.github.v1servicenotification.detail.spi.dto.TopicDetailModel | ||
import java.util.UUID | ||
|
||
@Spi | ||
interface QueryDetailRepositorySpi { | ||
fun findAllByUserId(userId: UUID): List<DetailModel> | ||
fun findAllByUserId(userId: UUID): List<TopicDetailModel> | ||
fun findAllByUseridAndIsReadFalse(userId: UUID): Int | ||
} |
1 change: 1 addition & 0 deletions
1
...tion-domain/src/main/kotlin/io/github/v1servicenotification/detail/spi/dto/DetailModel.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
28 changes: 28 additions & 0 deletions
28
...domain/src/main/kotlin/io/github/v1servicenotification/detail/spi/dto/TopicDetailModel.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,28 @@ | ||
package io.github.v1servicenotification.detail.spi.dto | ||
|
||
import io.github.v1servicenotification.category.Topic | ||
import java.time.LocalDateTime | ||
import java.util.UUID | ||
|
||
class TopicDetailModel( | ||
val id: UUID, | ||
|
||
val title: String, | ||
|
||
val content: String, | ||
|
||
val sentAt: LocalDateTime, | ||
|
||
isRead: Boolean, | ||
|
||
val userId: UUID, | ||
|
||
val name: String, | ||
|
||
val destination: String, | ||
|
||
val topic: Topic, | ||
) { | ||
var isRead: Boolean = isRead | ||
private 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
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
Oops, something went wrong.