-
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 #88 from ASAP-Lettering/ASAP-201
ASAP-201 feat: 행성 삭제시 내부 편지들도 모두 삭제되도록 이벤트 추가
- Loading branch information
Showing
27 changed files
with
498 additions
and
206 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
6 changes: 6 additions & 0 deletions
6
Application-Module/src/main/kotlin/com/asap/application/space/event/SpaceDeletedEvent.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 com.asap.application.space.event | ||
|
||
data class SpaceDeletedEvent( | ||
val userId: String, | ||
val spaceId: String, | ||
) |
7 changes: 3 additions & 4 deletions
7
...ation/space/port/in/SpaceCreateUsecase.kt → ...ation/space/port/in/CreateSpaceUsecase.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 com.asap.application.space.port.`in` | ||
|
||
interface SpaceCreateUsecase { | ||
|
||
interface CreateSpaceUsecase { | ||
fun create(command: Command) | ||
|
||
data class Command( | ||
val userId: String, | ||
val spaceName: String, | ||
val templateType: Int | ||
val templateType: Int, | ||
) | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
Application-Module/src/main/kotlin/com/asap/application/space/port/in/DeleteSpaceUsecase.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.asap.application.space.port.`in` | ||
|
||
interface DeleteSpaceUsecase { | ||
fun deleteOne(command: DeleteOneCommand) | ||
|
||
fun deleteAll(command: DeleteAllCommand) | ||
|
||
data class DeleteOneCommand( | ||
val userId: String, | ||
val spaceId: String, | ||
) | ||
|
||
data class DeleteAllCommand( | ||
val spaceIds: List<String>, | ||
val userId: String, | ||
) | ||
} |
2 changes: 1 addition & 1 deletion
2
...tion/space/port/in/MainSpaceGetUsecase.kt → ...tion/space/port/in/GetMainSpaceUsecase.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
2 changes: 1 addition & 1 deletion
2
...lication/space/port/in/SpaceGetUsecase.kt → ...lication/space/port/in/GetSpaceUsecase.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
23 changes: 0 additions & 23 deletions
23
Application-Module/src/main/kotlin/com/asap/application/space/port/in/SpaceDeleteUsecase.kt
This file was deleted.
Oops, something went wrong.
10 changes: 4 additions & 6 deletions
10
.../space/port/in/SpaceUpdateIndexUsecase.kt → .../space/port/in/UpdateSpaceIndexUsecase.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,17 +1,15 @@ | ||
package com.asap.application.space.port.`in` | ||
|
||
interface SpaceUpdateIndexUsecase { | ||
|
||
interface UpdateSpaceIndexUsecase { | ||
fun update(command: Command) | ||
|
||
data class Command( | ||
val userId: String, | ||
val orders: List<SpaceOrder> | ||
val orders: List<SpaceOrder>, | ||
) { | ||
|
||
data class SpaceOrder( | ||
val spaceId: String, | ||
val index: Int | ||
val index: Int, | ||
) | ||
} | ||
} | ||
} |
8 changes: 3 additions & 5 deletions
8
...n/space/port/in/SpaceUpdateNameUsecase.kt → ...n/space/port/in/UpdateSpaceNameUsecase.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,13 +1,11 @@ | ||
package com.asap.application.space.port.`in` | ||
|
||
interface SpaceUpdateNameUsecase { | ||
|
||
interface UpdateSpaceNameUsecase { | ||
fun update(command: Command) | ||
|
||
data class Command( | ||
val userId: String, | ||
val spaceId: String, | ||
val name: String | ||
val name: String, | ||
) | ||
|
||
} | ||
} |
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.