| | |
| | | |
| | | /** |
| | | * 电池数据统计 |
| | | * TODO: 单体统计每日更新一次,从缓存中获取提高效率 |
| | | */ |
| | | @RestController |
| | | @RequestMapping("batteryData") |
| | |
| | | return service.getBatteryCap(userId); |
| | | } |
| | | |
| | | /**这个接口后续需要考虑是否分开电压统计和温度统计*/ |
| | | @GetMapping("monVolAndTemp") |
| | | @ApiOperation(value = "单体电压和温度统计") |
| | | public Response getMonVolAndTemp(@RequestParam Integer userId){ |
| | | return service.getMonVolAndTemp(userId); |
| | | } |
| | | |
| | | @GetMapping("monRes") |
| | | @ApiOperation(value = "单体电阻统计") |
| | | public Response getMonRes(@RequestParam Integer userId){ |
| | | return service.getMonRes(userId); |
| | | } |
| | | |
| | | @GetMapping("monCap") |
| | | @ApiOperation(value = "单体容量统计") |
| | | public Response getMonCap(@RequestParam Integer userId){ |
| | | return service.getMonCap(userId); |
| | | } |
| | | |
| | | |
| | | } |