Service
domain.account.ports.service
Summary
CRUD service wiring for the account aggregate via the hexa container.
Classes
AccountCrudsService
Bases: CrudsServiceAdaptor[Account, AccountDocument]
Account CRUD service resolving :class:Account documents from a repo.
Notes
Instances are created by :func:get_account_service. The model
and schema class attributes bind the domain model and its document
type.
Functions
get_account_service
Build an account CRUD service wired to repo.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
repo |
Any
|
Mongo-backed account repository from :func: |
required |
Returns:
| Name | Type | Description |
|---|---|---|
AccountCrudsService |
AccountCrudsService
|
Ready-to-use account CRUD service. |