NettyHttpToken.h 689 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * @Description:
  3. * @Version: 1.0
  4. * @Autor: lishengyin
  5. * @Date: 2021-11-04 09:39:46
  6. * @LastEditors: lishengyin
  7. * @LastEditTime: 2021-11-24 16:08:22
  8. */
  9. #include <iostream>
  10. using namespace std;
  11. #include <rapidjson/document.h>
  12. #include <rapidjson/rapidjson.h>
  13. #include <rapidjson/stringbuffer.h>
  14. #include <rapidjson/writer.h>
  15. class NettyHttpToken
  16. {
  17. public:
  18. std::string authToken = "";
  19. std::string expiration = "";
  20. std::string refreshToken = "";
  21. public:
  22. NettyHttpToken() {}
  23. ~NettyHttpToken() {}
  24. /**
  25. * @description: json反序列为对象
  26. * @param {*}
  27. * @return {*}
  28. */
  29. bool jsonToObject(const rapidjson::Value& object);
  30. };