You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
//
// Created by zwsd
//
#pragma once
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <string>
#include <vector>
//
#include "api/front_msg_processer.hpp"
/**
* @brief * * service: UserCmdImpl * * 监听事件: * 依赖状态: * 依赖服务: * 作用: * */
namespace iflytop { using namespace std; using namespace core; class UserCmdImpl : public enable_shared_from_this<UserCmdImpl> { ENABLE_LOGGER(UserCmdImpl);
shared_ptr<FrontMsgProcesser> m_msgProcesser; shared_ptr<GConfig> m_zconfig; shared_ptr<IflytopFrontEndService> m_iflytopwsService; shared_ptr<DBService> m_dbService; shared_ptr<DeviceStateService> m_deviceStateService; shared_ptr<DisinfectionCtrlService> m_disinfectionCtrlService; shared_ptr<DeviceIoControlService> m_deviceIoControlService; shared_ptr<DisinfectionLogsManager> m_disinfectionLogsManager; shared_ptr<ZCanHost> m_zcanhost; shared_ptr<DataExportService> m_dataExportService; shared_ptr<FrontMsgProcesser> m_frontMsgProcesser;
public: UserCmdImpl(){}; void initialize();
private: void login(json& cmd, json& receipt); void unlogin(json& cmd, json& receipt); void chpasswd(json& cmd, json& receipt); void addUser(json& cmd, json& receipt); void delUser(json& cmd, json& receipt); void updateUserPermissionLevel(json& cmd, json& receipt); void updateUserUid(json& cmd, json& receipt); void getAllUser(json& cmd, json& receipt); }; } // namespace iflytop
|