123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #pragma once
- #include <iostream>
- #include <rapidjson/document.h>
- #include <rapidjson/rapidjson.h>
- #include <rapidjson/stringbuffer.h>
- #include <rapidjson/writer.h>
- #include <vector>
- #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();
- };
|