NettyHttpDeviceConfig.h 916 B

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