NettyHttpPeakValleyConfig.h 1016 B

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