mirror of
https://github.com/CUBETIQ/hexagonal-architect-spring-boot
synced 2024-05-04 18:41:37 +07:00
13 lines
429 B
Kotlin
13 lines
429 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.AccountQuery
|
|
|
|
class AccountQueryUseCase constructor(
|
|
private val accountPort: AccountPort,
|
|
) {
|
|
fun query(useCase: AccountQuery): Collection<Account> {
|
|
return accountPort.query(useCase)
|
|
}
|
|
} |