web_handler.h 587 B

12345678910111213141516171819202122232425262728
  1. #ifndef FOUNDATION_WEBCONFIG_H
  2. #define FOUNDATION_WEBCONFIG_H
  3. #include "settings/config_parser.h"
  4. #include <functional>
  5. #include <json/json.h>
  6. #include <memory>
  7. #include <stdio.h>
  8. #include <unordered_map>
  9. #include <vector>
  10. struct Webs;
  11. class WebHandler {
  12. public:
  13. WebHandler();
  14. static WebHandler *instance();
  15. bool LoginVerify(Webs *wp);
  16. Json::Value UidWebResult(Webs *wp, const std::string &node);
  17. Json::Value AjaxWebResult(Webs *wp, const std::string &node);
  18. bool WebResult(Webs *wp, const std::string &prefix);
  19. private:
  20. };
  21. #endif // FOUNDATION_WEBCONFIG_H