/** * Copyright (C) 2015-2018 * All rights reserved. * * AUTHOR(S) * Zheng Shuxin * E-mail: zhengshuxin@qiyi.com * * VERSION * Fri 16 Jun 2017 10:46:35 AM CST */ #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); };