【功能优化】Bpm:设备属性上报
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user