api_terminal_center_config.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #ifndef MICROSERVICES_API_TERMINAL_CENTER_CONFIG_HEADER_
  2. #define MICROSERVICES_API_TERMINAL_CENTER_CONFIG_HEADER_
  3. #include "api_comm.h"
  4. #include <string>
  5. #include <vector>
  6. namespace MicroServices
  7. {
  8. namespace API
  9. {
  10. namespace Terminal
  11. {
  12. /*
  13. * "branchNo": "755",
  14. "cnName": "",
  15. "moudle": "GPIO",
  16. "name": ";keba",
  17. "remark": "",
  18. "sites": "BIZ",
  19. "updateTime": "2021-07-14 16:12:37.178",
  20. "value": "Trace"
  21. */
  22. struct ModuleConfigItem
  23. {
  24. std::string branchNo;
  25. std::string remark;
  26. std::string sites;
  27. std::string updateTime;
  28. std::string moudle;
  29. std::string name;
  30. std::string value;
  31. };
  32. struct CenterSettingConfig
  33. {
  34. std::string lastUpdateTime;
  35. std::vector<ModuleConfigItem> config;
  36. };
  37. struct CenterSettingFile
  38. {
  39. std::string branchNo;
  40. CenterSettingConfig biz;
  41. CenterSettingConfig dmz;
  42. };
  43. }
  44. namespace TerminalV3
  45. {
  46. struct ModuleConfigItem
  47. {
  48. std::string m_moudle;
  49. std::string m_name;
  50. std::string m_value;
  51. };
  52. }
  53. }
  54. }
  55. #endif //MICROSERVICES_API_TERMINAL_CENTER_CONFIG_HEADER_