mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-16 01:40:52 +08:00
9697f95b8f
This reverts commit 15d999759e
.
22 lines
409 B
C++
22 lines
409 B
C++
#pragma once
|
|
|
|
class base_action
|
|
{
|
|
public:
|
|
base_action(const acl::string&, acl::HttpServletRequest&,
|
|
acl::HttpServletResponse&);
|
|
virtual ~base_action(void) {}
|
|
|
|
virtual int run(acl::string& json) = 0;
|
|
|
|
void set_conf(const char* path);
|
|
|
|
protected:
|
|
acl::string addr_;
|
|
acl::string conf_;
|
|
acl::HttpServletRequest& req_;
|
|
acl::HttpServletResponse& res_;
|
|
|
|
acl::json* get_json(void);
|
|
};
|