|
|
@ -0,0 +1,23 @@ |
|
|
|
#include "device_info_mgr_service.hpp"
|
|
|
|
|
|
|
|
using namespace iflytop; |
|
|
|
using namespace std; |
|
|
|
using namespace core; |
|
|
|
|
|
|
|
DeviceInfoMgrService::DeviceInfoMgrService() {} |
|
|
|
void DeviceInfoMgrService::initialize() { |
|
|
|
GET_TO_SERVICE(m_db); |
|
|
|
GET_TO_SERVICE(m_ds); |
|
|
|
GET_TO_SERVICE(m_gConfig); |
|
|
|
|
|
|
|
REGFN(DeviceInfoMgrService, getDeviceInfo); |
|
|
|
} |
|
|
|
|
|
|
|
void DeviceInfoMgrService::getDeviceInfo(shared_ptr<MsgProcessContext> cxt) { //
|
|
|
|
|
|
|
|
auto& content = cxt->content; |
|
|
|
content["projectType"] = m_gConfig->get_projectType(); |
|
|
|
content["appVersion"] = VERSION; |
|
|
|
content["mircoVersion"] = "3.0.0"; |
|
|
|
content["ip"] = "192.168.8.10"; |
|
|
|
} |