2025-10-06 18:30:22 +02:00
|
|
|
package lu.foyer
|
|
|
|
|
package contracts
|
|
|
|
|
|
|
|
|
|
import zio.*
|
|
|
|
|
|
|
|
|
|
class ContractController(
|
|
|
|
|
val commandEngine: CommandEngine[ContractCommand, ContractEvent, ContractState])
|
|
|
|
|
extends CommandEngineController[ContractCommand, ContractEvent, ContractState]:
|
|
|
|
|
override val onthology = "org:example:insurance:contract"
|
|
|
|
|
override val entityName = "contracts"
|
|
|
|
|
override val allEntities = List("clients", "contracts")
|
|
|
|
|
|
|
|
|
|
object ContractController:
|
2025-11-04 14:37:21 +01:00
|
|
|
val live = ZLayer.fromFunction(ContractController.apply)
|