【功能优化】Bpm:设备属性上报

This commit is contained in:
YunaiV
2025-01-28 04:56:03 +08:00
parent eb2d4fdbc0
commit 5fbfe49305
18 changed files with 147 additions and 137 deletions

View File

@@ -35,13 +35,13 @@ public class DeviceDataApiClient implements IotDeviceUpstreamApi {
}
@Override
public CommonResult<Boolean> reportDeviceEventData(IotDeviceEventReportReqDTO reportReqDTO) {
public CommonResult<Boolean> reportDeviceEvent(IotDeviceEventReportReqDTO reportReqDTO) {
String url = deviceDataUrl + URL_PREFIX + "/report-event";
return doPost(url, reportReqDTO, "reportDeviceEventData");
}
@Override
public CommonResult<Boolean> reportDevicePropertyData(IotDevicePropertyReportReqDTO reportReqDTO) {
public CommonResult<Boolean> reportDeviceProperty(IotDevicePropertyReportReqDTO reportReqDTO) {
String url = deviceDataUrl + URL_PREFIX + "/report-property";
return doPost(url, reportReqDTO, "reportDevicePropertyData");
}

View File

@@ -49,7 +49,7 @@ public class HttpVertxHandler implements Handler<RoutingContext> {
.properties((Map<String, Object>) requestBody.asJsonObject().getMap().get("properties"))
.build();
deviceDataApi.reportDevicePropertyData(reportReqDTO);
deviceDataApi.reportDeviceProperty(reportReqDTO);
ctx.response()
.setStatusCode(200)