mirror of
https://github.com/CUBETIQ/hexagonal-architect-spring-boot
synced 2024-05-18 09:21:39 +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)
|
||
|
}
|
||
|
}
|