mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-15 01:10:52 +08:00
9697f95b8f
This reverts commit 15d999759e
.
22 lines
406 B
C++
22 lines
406 B
C++
#pragma once
|
|
|
|
struct ACL_MASTER_SERV;
|
|
struct list_req_t;
|
|
struct list_res_t;
|
|
class http_client;
|
|
|
|
class service_list
|
|
{
|
|
public:
|
|
service_list(http_client& client) : client_(client) {}
|
|
~service_list(void) {}
|
|
|
|
bool run(acl::json& json);
|
|
|
|
private:
|
|
http_client& client_;
|
|
|
|
bool handle(const list_req_t& req, list_res_t& res);
|
|
void add_one(list_res_t& res, const ACL_MASTER_SERV* ser);
|
|
};
|