|
ORE Studio 0.0.4
|
Service for managing account parties. More...
#include <account_party_service.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| account_party_service (context ctx) | |
| Constructs a account_party_service with required repositories. | |
| std::vector< domain::account_party > | list_account_parties () |
| Lists all account parties. | |
| std::vector< domain::account_party > | list_account_parties_by_account (const boost::uuids::uuid &account_id) |
| Lists account parties for a specific account. | |
| void | save_account_party (const domain::account_party &account_party) |
| Saves a account party (creates or updates). | |
| void | remove_account_party (const boost::uuids::uuid &account_id, const boost::uuids::uuid &party_id) |
| Removes a account party. | |
Service for managing account parties.
This service provides functionality for:
|
explicit |
Constructs a account_party_service with required repositories.
| ctx | The database context. |
| std::vector< domain::account_party > list_account_parties_by_account | ( | const boost::uuids::uuid & | account_id | ) |
Lists account parties for a specific account.
| account_id | The account to filter by |
| void save_account_party | ( | const domain::account_party & | account_party | ) |
Saves a account party (creates or updates).
| account_party | The account party to save |
| void remove_account_party | ( | const boost::uuids::uuid & | account_id, |
| const boost::uuids::uuid & | party_id | ||
| ) |
Removes a account party.
| account_id | The account |
| party_id | The party |