NettyHttpCrowdingDegreeConfig.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #pragma once
  2. #include <iostream>
  3. #include <rapidjson/document.h>
  4. #include <rapidjson/rapidjson.h>
  5. #include <rapidjson/stringbuffer.h>
  6. #include <rapidjson/writer.h>
  7. #include <vector>
  8. #include "Util/logger.h"
  9. #include "Util/NoticeCenter.h"
  10. #include "Poller/EventPoller.h"
  11. #include "Util/SqlPool.h"
  12. #include "Network/TcpClient.h"
  13. #include "Poller/Timer.h"
  14. using namespace std;
  15. using namespace toolkit;
  16. class NettyHttpCrowdingDegreeConfig
  17. {
  18. public:
  19. std::string addTime;
  20. std::string updateTime;
  21. int createBy;
  22. int updateBy;
  23. int enableFlag;
  24. std::string attr1;
  25. std::string attr2;
  26. std::string attr3;
  27. int appId;
  28. int configId;
  29. std::string conKey;
  30. std::string conValue;
  31. std::string active;
  32. std::string remark;
  33. public:
  34. NettyHttpCrowdingDegreeConfig() {}
  35. ~NettyHttpCrowdingDegreeConfig() {}
  36. /**
  37. * @description: json转换为对象
  38. * @param {Value&} object
  39. * @return {*}
  40. */
  41. bool jsonToObject(const rapidjson::Value& object);
  42. /**
  43. * @description: 数据同步
  44. * @param {*}
  45. * @return {*}
  46. */
  47. bool NettyClientDataSync();
  48. };