13 lines
464 B
Scala
13 lines
464 B
Scala
package lu.foyer
|
|
package clients
|
|
|
|
import zio.*
|
|
|
|
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")
|
|
|
|
object ClientController:
|
|
val live = ZLayer.fromFunction(ClientController.apply)
|