LoginFilter.hpp 761 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * @Author: Your Name lishengyin@sz-sunwin.com
  3. * @Date: 2022-06-15 22:40:47
  4. * @LastEditors: Your Name lishengyin@sz-sunwin.com
  5. * @LastEditTime: 2022-06-15 22:42:04
  6. * @FilePath: /ins/source/filters/include/LoginFilter.hpp
  7. * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
  8. */
  9. /**
  10. *
  11. * LoginFilter.h
  12. *
  13. */
  14. #pragma once
  15. #include <drogon/HttpFilter.h>
  16. using namespace drogon;
  17. class LoginFilter : public HttpFilter<LoginFilter>
  18. {
  19. public:
  20. LoginFilter() {}
  21. virtual void doFilter(const HttpRequestPtr &req,
  22. FilterCallback &&fcb,
  23. FilterChainCallback &&fccb) override;
  24. };