|
ORE Studio 0.0.4
|
Service for managing business centres. More...
#include <business_centre_service.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| business_centre_service (context ctx) | |
| Constructs a business_centre_service with a database context. | |
| std::vector< domain::business_centre > | list_business_centres (std::uint32_t offset, std::uint32_t limit) |
| Lists business centres with pagination support. | |
| std::uint32_t | count_business_centres () |
| Gets the total count of active business centres. | |
| void | save_business_centre (const domain::business_centre &bc) |
| Saves a business centre (creates or updates). | |
| void | save_business_centres (const std::vector< domain::business_centre > &business_centres) |
| Saves a batch of business centres. | |
| void | delete_business_centre (const std::string &code) |
| Deletes a business centre by its code. | |
| void | delete_business_centres (const std::vector< std::string > &codes) |
| Deletes business centres by their codes. | |
| std::optional< domain::business_centre > | get_business_centre (const std::string &code) |
| Retrieves a single business centre by its code. | |
| std::vector< domain::business_centre > | get_business_centre_history (const std::string &code) |
| Retrieves all historical versions of a business centre. | |
Service for managing business centres.
Provides a higher-level interface for business centre operations, wrapping the underlying repository.