| | |
| | | @Autowired |
| | | private DeviceStateService deviceStateService; |
| | | |
| | | @Autowired |
| | | private AppParamService appParamService; |
| | | |
| | | @ApiOperation(value = "电源信息统计(1.2.1/1.2.13)") |
| | | @PostMapping("getPowerStatistic") |
| | |
| | | User uinf= ActionUtil.getUser(); |
| | | stic.setUid(uinf.getId()); |
| | | return deviceStateService.getDeviceStateStatistic(stic); |
| | | } |
| | | |
| | | @ApiOperation(value = "设置权重(1.2.16)") |
| | | @PostMapping("setHehavior") |
| | | public Response setHehavior(@RequestBody List<AppParam> List){ |
| | | return appParamService.setHehavior(List); |
| | | } |
| | | |
| | | @ApiOperation(value = "读取权重(1.2.16)") |
| | | @GetMapping("getHehavior") |
| | | public Response getHehavior(){ |
| | | return appParamService.getHehavior(); |
| | | } |
| | | |
| | | |