|
@@ -7,12 +7,11 @@ import com.ebei.screen.service.EnergyPlatformService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
+import java.util.List;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @author Liu.x
|
|
@@ -45,4 +44,23 @@ public class EnergyPlatformController {
|
|
|
public ResponseBean getAllInOne(@PathVariable String boxId) {
|
|
|
return energyPlatformService.getAllInOne(boxId);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation("获取能耗大屏数据监控推送")
|
|
|
+ @PostMapping("/dataMonitoringCallback")
|
|
|
+ public ResponseBean dataMonitoringCallback(@RequestBody List<Map> params) {
|
|
|
+ return energyPlatformService.dataMonitoringCallback(params);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("获取能耗大屏报警记录推送")
|
|
|
+ @PostMapping("/alarmRecordCallback")
|
|
|
+ public ResponseBean alarmRecordCallback(@RequestBody List<Map> params) {
|
|
|
+ return energyPlatformService.alarmRecordCallback(params);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("获取能耗大屏设备状态推送")
|
|
|
+ @PostMapping("/deviceStateCallback")
|
|
|
+ public ResponseBean deviceStateCallback(@RequestBody List<Map> params) {
|
|
|
+ return energyPlatformService.deviceStateCallback(params);
|
|
|
+ }
|
|
|
}
|