From 75f60a7a6274a2ba0df216790e09d912d86e45e4 Mon Sep 17 00:00:00 2001 From: usbharu Date: Tue, 28 May 2024 17:54:17 +0900 Subject: [PATCH] wip --- .../actor/local/LocalActorMigrationCheckDomainService.kt | 2 ++ .../actor/MigrationLocalActorApplicationService.kt | 1 + .../actor/SetAlsoKnownAsLocalActorApplicationService.kt | 8 ++++++++ 3 files changed, 11 insertions(+) create mode 100644 hideout-core/src/main/kotlin/dev/usbharu/hideout/core/usecase/actor/SetAlsoKnownAsLocalActorApplicationService.kt diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/service/actor/local/LocalActorMigrationCheckDomainService.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/service/actor/local/LocalActorMigrationCheckDomainService.kt index 01fd5aeb..dfa8c9c5 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/service/actor/local/LocalActorMigrationCheckDomainService.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/domain/service/actor/local/LocalActorMigrationCheckDomainService.kt @@ -32,4 +32,6 @@ sealed class AccountMigrationCheck( class SelfReferences : AccountMigrationCheck(false) class AlreadyMoved(val message: String) : AccountMigrationCheck(false) + + class AlsoKnownAsNotFound(val message: String) : AccountMigrationCheck(false) } \ No newline at end of file diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/usecase/actor/MigrationLocalActorApplicationService.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/usecase/actor/MigrationLocalActorApplicationService.kt index a7dc73bd..9384eff1 100644 --- a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/usecase/actor/MigrationLocalActorApplicationService.kt +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/usecase/actor/MigrationLocalActorApplicationService.kt @@ -48,6 +48,7 @@ class MigrationLocalActorApplicationService( is CircularReferences -> TODO() is SelfReferences -> TODO() + is AlsoKnownAsNotFound -> TODO() } } diff --git a/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/usecase/actor/SetAlsoKnownAsLocalActorApplicationService.kt b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/usecase/actor/SetAlsoKnownAsLocalActorApplicationService.kt new file mode 100644 index 00000000..772385d8 --- /dev/null +++ b/hideout-core/src/main/kotlin/dev/usbharu/hideout/core/usecase/actor/SetAlsoKnownAsLocalActorApplicationService.kt @@ -0,0 +1,8 @@ +package dev.usbharu.hideout.core.usecase.actor + +import org.springframework.stereotype.Service + +@Service +interface SetAlsoKnownAsLocalActorApplicationService { + suspend fun setAlsoKnownAs(actorId: Long, alsoKnownAs: List) +} \ No newline at end of file