mirror of
https://github.com/CUBETIQ/hexagonal-architect-spring-boot
synced 2024-05-04 10:31:38 +07:00
13 lines
422 B
Kotlin
13 lines
422 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.AccountCreate
|
|
|
|
class AccountCreateUseCase constructor(
|
|
private val accountPort: AccountPort,
|
|
) {
|
|
fun create(useCase: AccountCreate): Account {
|
|
return accountPort.create(useCase)
|
|
}
|
|
} |