|
@ -10,6 +10,11 @@ |
|
|
#include "service/setting_mgr_service.hpp"
|
|
|
#include "service/setting_mgr_service.hpp"
|
|
|
#include "service/test_page_mgr_service.hpp"
|
|
|
#include "service/test_page_mgr_service.hpp"
|
|
|
#include "service/user_mgr_service.hpp"
|
|
|
#include "service/user_mgr_service.hpp"
|
|
|
|
|
|
//
|
|
|
|
|
|
#include "service/app/add_liquid_service.hpp"
|
|
|
|
|
|
#include "service/app/air_tightness_test.hpp"
|
|
|
|
|
|
#include "service/app/disinfection_service.hpp"
|
|
|
|
|
|
#include "service/app/drain_liquid_service.hpp"
|
|
|
|
|
|
|
|
|
using namespace iflytop; |
|
|
using namespace iflytop; |
|
|
using namespace core; |
|
|
using namespace core; |
|
@ -46,6 +51,11 @@ void MainControlService::initialize() { |
|
|
BUILD_AND_REG_SERRVICE(OsMgrService); |
|
|
BUILD_AND_REG_SERRVICE(OsMgrService); |
|
|
BUILD_AND_REG_SERRVICE(TestPageMgrService); |
|
|
BUILD_AND_REG_SERRVICE(TestPageMgrService); |
|
|
|
|
|
|
|
|
|
|
|
BUILD_AND_REG_SERRVICE(AddLiquidService); |
|
|
|
|
|
BUILD_AND_REG_SERRVICE(AirTightnessTest); |
|
|
|
|
|
BUILD_AND_REG_SERRVICE(DisinfectionService); |
|
|
|
|
|
BUILD_AND_REG_SERRVICE(DrainLiquidService); |
|
|
|
|
|
|
|
|
//
|
|
|
//
|
|
|
GET_SERVICE(IflytopFrontEndService)->startListen(); |
|
|
GET_SERVICE(IflytopFrontEndService)->startListen(); |
|
|
GET_SERVICE(IflytopFrontEndService)->onMessage.connect([this](weak_ptr<WebSocket> webSocket, json& cmd, json& receipt) { |
|
|
GET_SERVICE(IflytopFrontEndService)->onMessage.connect([this](weak_ptr<WebSocket> webSocket, json& cmd, json& receipt) { |
|
|