mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
修改运行监控场站及设备信息查询接口
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <functional>
|
||||
|
||||
class HttpEntity;
|
||||
using HandlerFunc = Errcode(HttpEntity::*)(const httplib::Request& req, httplib::Response& resp, NJsonNode& jnode);
|
||||
using HandlerFunc = Errcode(HttpEntity::*)(const httplib::Request& req, njson& jnode, std::string& errmsg);
|
||||
|
||||
struct HandlerOptions
|
||||
{
|
||||
@@ -29,57 +29,60 @@ public:
|
||||
|
||||
//void onGet(const httplib::Request& req, httplib::Response& resp);
|
||||
|
||||
Errcode login(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode login(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
|
||||
Errcode queryUserList(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode insertUser(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode updateUser(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode deleteUser(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryUserList(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode insertUser(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode updateUser(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode deleteUser(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
|
||||
Errcode queryPermissionList(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode insertPermission(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode updatePermission(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode deletePermission(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryPermissionList(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode insertPermission(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode updatePermission(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode deletePermission(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
|
||||
|
||||
Errcode queryRoleList(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode insertRole(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode updateRole(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode deleteRole(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryRoleList(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode insertRole(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode updateRole(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode deleteRole(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
|
||||
Errcode queryStationList(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode insertStation(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode updateStation(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode deleteStation(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryStationList(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode insertStation(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode updateStation(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode deleteStation(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
|
||||
Errcode queryStationInfo(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryStationData(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryStationOverview(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode queryStationInfo(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode queryStationData(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
|
||||
Errcode queryDeviceList(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode insertDevice(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode updateDevice(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode deleteDevice(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryDevicTypeDef(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryDeviceList(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode insertDevice(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode updateDevice(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode deleteDevice(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode queryDevicTypeDef(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode queryDevicByCategory(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode queryDevicCharts(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
|
||||
Errcode queryPolicyList(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode insertPolicy(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode updatePolicy(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode deletePolicy(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryPolicyList(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode insertPolicy(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode updatePolicy(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode deletePolicy(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
|
||||
Errcode querySystemLogList(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode querySystemLogList(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
//Errcode insertSystemLog(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode updateSystemLog(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode updateSystemLog(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
|
||||
Errcode queryAlertLogList(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryAlertLogList(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
//Errcode insertAlertLog(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode updateAlertLog(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode updateAlertLog(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
|
||||
Errcode queryPredictionDetail(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryPredictionDetail(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
|
||||
Errcode queryStatSystem(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryStatTotal(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryStatStation(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryStatDayList(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryStatSystem(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode queryStatTotal(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode queryStatStation(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
Errcode queryStatDayList(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
|
||||
Errcode queryEnvironment(const httplib::Request& req, httplib::Response& resp, NJsonNode& json);
|
||||
Errcode queryEnvironment(const httplib::Request& req, njson& json, std::string& errmsg);
|
||||
};
|
||||
Reference in New Issue
Block a user