2025-02-28 05:40:32 +01:00
|
|
|
package lu.foyer
|
|
|
|
|
package clients
|
|
|
|
|
|
|
|
|
|
import zio.*
|
|
|
|
|
|
2025-10-06 18:30:22 +02:00
|
|
|
class ClientController(val commandEngine: CommandEngine[ClientCommand, ClientEvent, ClientState])
|
|
|
|
|
extends CommandEngineController[ClientCommand, ClientEvent, ClientState]:
|
|
|
|
|
override val onthology = "org:example:insurance:client"
|
|
|
|
|
override val entityName = "clients"
|
|
|
|
|
override val allEntities = List("clients", "contracts")
|
2025-02-28 05:40:32 +01:00
|
|
|
|
|
|
|
|
object ClientController:
|
2025-03-03 00:24:13 +01:00
|
|
|
val layer = ZLayer.fromFunction(ClientController.apply)
|