mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-16 01:40:52 +08:00
9697f95b8f
This reverts commit 15d999759e
.
20 lines
414 B
C++
20 lines
414 B
C++
#pragma once
|
|
#include "base_action.h"
|
|
|
|
class commands_action : public base_action
|
|
{
|
|
public:
|
|
commands_action(const char* addr, acl::HttpServletRequest&,
|
|
acl::HttpServletResponse&, const char* cmd);
|
|
~commands_action(void) {}
|
|
|
|
// @override
|
|
int run(acl::string& out);
|
|
|
|
private:
|
|
acl::string cmd_;
|
|
|
|
template<typename TReq, typename TReqData>
|
|
bool enabled(acl::json& in, acl::string& out);
|
|
};
|