-
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
26 changed files
with
135 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
plugins { | ||
`java-library` | ||
kotlin("jvm") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
// Kotlin | ||
implementation(kotlin("stdlib-jdk8")) | ||
} |
9 changes: 9 additions & 0 deletions
9
checklister-dto/src/main/kotlin/cloud/cosmin/checklister/lib/dto/ItemGetDto.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,9 @@ | ||
package cloud.cosmin.checklister.lib.dto | ||
|
||
import java.util.* | ||
|
||
data class ItemGetDto(var id: UUID?, | ||
var list: UUID?, | ||
var content: String?, | ||
var contentType: String?, | ||
var rank: Int?) |
9 changes: 9 additions & 0 deletions
9
checklister-dto/src/main/kotlin/cloud/cosmin/checklister/lib/dto/ItemPostDto.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,9 @@ | ||
package cloud.cosmin.checklister.lib.dto | ||
|
||
import java.util.* | ||
|
||
data class ItemPostDto( | ||
var list: UUID?, | ||
var content: String?, | ||
var contentType: String? | ||
) |
8 changes: 8 additions & 0 deletions
8
checklister-dto/src/main/kotlin/cloud/cosmin/checklister/lib/dto/ListGetDto.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 cloud.cosmin.checklister.lib.dto | ||
|
||
import java.util.* | ||
|
||
data class ListGetDto( | ||
var id: UUID?, | ||
var title: String? | ||
) |
5 changes: 5 additions & 0 deletions
5
checklister-dto/src/main/kotlin/cloud/cosmin/checklister/lib/dto/ListPostDto.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 cloud.cosmin.checklister.lib.dto | ||
|
||
data class ListPostDto( | ||
var title: String | ||
) |
9 changes: 9 additions & 0 deletions
9
checklister-dto/src/main/kotlin/cloud/cosmin/checklister/lib/dto/ListWithItemsDto.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,9 @@ | ||
package cloud.cosmin.checklister.lib.dto | ||
|
||
import java.util.* | ||
|
||
data class ListWithItemsDto( | ||
var id: UUID?, | ||
var title: String?, | ||
var items: MutableList<ItemGetDto>? | ||
) |
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: 3 additions & 3 deletions
6
...n/checklister/service/event/ItemEvents.kt → ...osmin/checklister/lib/event/ItemEvents.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
4 changes: 2 additions & 2 deletions
4
.../cosmin/checklister/service/ListEvents.kt → ...osmin/checklister/lib/event/ListEvents.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
6 changes: 6 additions & 0 deletions
6
...klister-event/src/main/kotlin/cloud/cosmin/checklister/lib/event/model/ItemCreateEvent.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 cloud.cosmin.checklister.lib.event.model | ||
|
||
import cloud.cosmin.checklister.lib.dto.ItemGetDto | ||
import cloud.cosmin.checklister.lib.event.Event | ||
|
||
data class ItemCreateEvent(val item: ItemGetDto) : Event |
9 changes: 9 additions & 0 deletions
9
checklister-event/src/main/kotlin/cloud/cosmin/checklister/lib/event/model/ItemRankEvent.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,9 @@ | ||
package cloud.cosmin.checklister.lib.event.model | ||
|
||
import cloud.cosmin.checklister.lib.dto.ItemGetDto | ||
import cloud.cosmin.checklister.lib.event.Event | ||
|
||
data class ItemRankEvent( | ||
val op: RankOperation, | ||
val before: ItemGetDto, | ||
val after: ItemGetDto) : Event |
8 changes: 8 additions & 0 deletions
8
...klister-event/src/main/kotlin/cloud/cosmin/checklister/lib/event/model/ItemUpdateEvent.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 cloud.cosmin.checklister.lib.event.model | ||
|
||
import cloud.cosmin.checklister.lib.dto.ItemGetDto | ||
import cloud.cosmin.checklister.lib.event.Event | ||
|
||
data class ItemUpdateEvent( | ||
val before: ItemGetDto, | ||
val after: ItemGetDto) : Event |
6 changes: 6 additions & 0 deletions
6
...klister-event/src/main/kotlin/cloud/cosmin/checklister/lib/event/model/ListCreateEvent.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 cloud.cosmin.checklister.lib.event.model | ||
|
||
import cloud.cosmin.checklister.lib.dto.ListGetDto | ||
import cloud.cosmin.checklister.lib.event.Event | ||
|
||
data class ListCreateEvent(val item: ListGetDto) : Event |
6 changes: 6 additions & 0 deletions
6
...klister-event/src/main/kotlin/cloud/cosmin/checklister/lib/event/model/ListUpdateEvent.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 cloud.cosmin.checklister.lib.event.model | ||
|
||
import cloud.cosmin.checklister.lib.dto.ListGetDto | ||
import cloud.cosmin.checklister.lib.event.Event | ||
|
||
data class ListUpdateEvent(val before: ListGetDto, val after: ListGetDto) : Event |
2 changes: 1 addition & 1 deletion
2
...smin/checklister/service/RankOperation.kt → ...cklister/lib/event/model/RankOperation.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugins { | ||
`java-library` | ||
kotlin("jvm") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
api("org.apache.logging.log4j:log4j-api:2.11.2") | ||
implementation(kotlin("stdlib-jdk8")) // Kotlin stdlib | ||
implementation(project(":checklister-event")) | ||
} |
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,2 +1,4 @@ | ||
rootProject.name = "checklister" | ||
include("checklister-event", "checklister-eventsink-logger") | ||
include("checklister-event", | ||
"checklister-eventsink-logger", | ||
"checklister-dto") |
This file was deleted.
Oops, something went wrong.
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
7 changes: 3 additions & 4 deletions
7
src/main/kotlin/cloud/cosmin/checklister/service/ItemService.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
6 changes: 3 additions & 3 deletions
6
src/main/kotlin/cloud/cosmin/checklister/service/ListService.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
29 changes: 0 additions & 29 deletions
29
src/main/kotlin/cloud/cosmin/checklister/service/event/ItemEvent.kt
This file was deleted.
Oops, something went wrong.
8 changes: 6 additions & 2 deletions
8
src/main/kotlin/cloud/cosmin/checklister/service/event/ItemEventService.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
6 changes: 4 additions & 2 deletions
6
src/main/kotlin/cloud/cosmin/checklister/service/event/ListEventService.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