mirror of
https://github.com/CUBETIQ/hexagonal-architect-spring-boot
synced 2024-05-04 10:31:38 +07:00
13 lines
432 B
Kotlin
13 lines
432 B
Kotlin
package com.cubetiqs.hexagonal.domain.account
|
|
|
|
import com.cubetiqs.hexagonal.domain.account.model.Account
|
|
import com.cubetiqs.hexagonal.domain.account.port.AccountPort
|
|
import com.cubetiqs.hexagonal.domain.account.usecase.AccountRetrieve
|
|
|
|
class AccountRetrieveUseCase constructor(
|
|
private val accountPort: AccountPort,
|
|
) {
|
|
fun retrieve(useCase: AccountRetrieve): Account {
|
|
return accountPort.retrieve(useCase)
|
|
}
|
|
} |