mirror of
https://github.com/CUBETIQ/hexagonal-architect-spring-boot
synced 2024-05-18 17:31:45 +07:00
12 lines
497 B
Kotlin
12 lines
497 B
Kotlin
|
package com.cubetiqs.hexagonal.domain.account.port
|
||
|
|
||
|
import com.cubetiqs.hexagonal.domain.account.model.Account
|
||
|
import com.cubetiqs.hexagonal.domain.account.usecase.AccountCreate
|
||
|
import com.cubetiqs.hexagonal.domain.account.usecase.AccountQuery
|
||
|
import com.cubetiqs.hexagonal.domain.account.usecase.AccountRetrieve
|
||
|
|
||
|
interface AccountPort {
|
||
|
fun create(useCase: AccountCreate): Account
|
||
|
fun retrieve(useCase: AccountRetrieve): Account
|
||
|
fun query(useCase: AccountQuery): Collection<Account>
|
||
|
}
|