foyer-dsi-assure-2035/api/src/lu/foyer/clients/ClientController.scala

14 lines
464 B
Scala
Raw Normal View History

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-11-04 14:37:21 +01:00
val live = ZLayer.fromFunction(ClientController.apply)