#pragma once #include #include #include #include #include "IExecutor.h" #include "../DAO/IAuthDAO.h" #include "../DAO/IMedicationsDAO.h" #include "../exceptions/session_exception.h" namespace uad { template class UserGetMedicationsExecutor : public IExecutor { mysqlx::Session& session_; const std::shared_ptr& auth_dao_; const std::shared_ptr& medications_dao_; public: UserGetMedicationsExecutor( mysqlx::Session& session, const std::shared_ptr& auth_dao, const std::shared_ptr& medications_dao ): session_(session), auth_dao_(auth_dao), medications_dao_(medications_dao) { } boost::beast::http::response operator ()( boost::beast::http::request>&& req ) override { using namespace boost; using namespace boost::json; using namespace boost::beast; using namespace std::string_literals; http::response res{http::status::ok, req.version()}; return res; } }; }