12345678910111213141516171819202122232425262728293031323334 |
- /**
- *
- * gsd_UserApp.h
- *
- */
- #pragma once
- #include <drogon/plugins/Plugin.h>
- #include <drogon/drogon.h>
- #include "Util/logger.h"
- #include "Util/SqlPool.h"
- #include <drogon/drogon.h>
- #include "gsd_InferPlugin.h"
- #include "gsd_CenterGroup.h"
- namespace gsd
- {
- class UserApp : public drogon::Plugin<UserApp>
- {
- public:
- UserApp() {}
- /// This method must be called by drogon to initialize and start the plugin.
- /// It must be implemented by the user.
- virtual void initAndStart(const Json::Value &config) override;
- /// This method must be called by drogon to shutdown the plugin.
- /// It must be implemented by the user.
- virtual void shutdown() override;
- };
- }
|