#pragma once #include #include #include #include #include #include #include "Util/logger.h" #include "Util/NoticeCenter.h" #include "Poller/EventPoller.h" #include "Util/SqlPool.h" #include "Network/TcpClient.h" #include "Poller/Timer.h" using namespace std; using namespace toolkit; class NettyHttpCrowdingDegreeConfig { public: std::string addTime; std::string updateTime; int createBy; int updateBy; int enableFlag; std::string attr1; std::string attr2; std::string attr3; int appId; int configId; std::string conKey; std::string conValue; std::string active; std::string remark; public: NettyHttpCrowdingDegreeConfig() {} ~NettyHttpCrowdingDegreeConfig() {} /** * @description: json转换为对象 * @param {Value&} object * @return {*} */ bool jsonToObject(const rapidjson::Value& object); /** * @description: 数据同步 * @param {*} * @return {*} */ bool NettyClientDataSync(); };