Multiple implementations of the same back-end application. The aim is to provide quick, side-by-side comparisons of different technologies (languages, frameworks, libraries) while preserving consistent business logic across all implementations.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
569 B

#pragma once
#include "application/interfaces/IOrderService.h"
#include "domain/entities/Item.h"
#include "autostore/ILogger.h"
namespace nxl::autostore::infrastructure {
class HttpOrderService : public application::IOrderService
{
public:
explicit HttpOrderService(ILoggerPtr logger);
virtual ~HttpOrderService();
void orderItem(const domain::Item& item) override;
private:
ILoggerPtr log;
void sendPostRequest(std::string_view url, std::string_view payload);
class Impl;
std::unique_ptr<Impl> impl;
};
} // namespace nxl::autostore::infrastructure