| | |
| | | @ApiOperation(value = "获取净化设备信息") |
| | | @GetMapping("/purify/info") |
| | | fun getPurifyDeviceInfo( |
| | | @RequestParam("userId") userId: String |
| | | @ApiParam(value = "用户id") @RequestParam("userId") userId: String |
| | | ) = deviceService.getPurifyDeviceInfo(userId) |
| | | |
| | | @ApiOperation(value = "获取监测设备信息") |
| | | @GetMapping("/monitor/info") |
| | | fun getMonitorDeviceInfo( |
| | | @RequestParam("userId") userId: String |
| | | @ApiParam(value = "用户id") @RequestParam("userId") userId: String |
| | | ) = deviceService.getMonitorDeviceInfo(userId) |
| | | |
| | | @ApiOperation(value = "获取用户监测设备的分钟数据", notes = "目前默认返回最新的15条数据,按时间升序排列") |
| | |
| | | @ApiParam(value = "用户id") @RequestParam("userId") userId: String |
| | | ) = deviceService.getLatestHourValue(userId) |
| | | |
| | | @ApiOperation(value = "获取月度均值数据") |
| | | @PostMapping("/avg/mon/value") |
| | | fun getMonAvgData( |
| | | @ApiParam(value = "用户id") @RequestParam("userId") userId: String, |
| | |
| | | @ApiParam(value = "用户id") @RequestParam("userId") userId: String, |
| | | @ApiParam(value = "开始时间", example = "yyyy-MM-dd HH:mm") @RequestParam("startTime") startTime: String, |
| | | @ApiParam(value = "结束时间", example = "yyyy-MM-dd HH:mm") @RequestParam("endTime") endTime: String, |
| | | @ApiParam(value = "采样周期, 0:分钟均值;1:小时均值;(目前只支持分钟均值)", allowableValues = "0") @RequestParam("period") period: Byte |
| | | @ApiParam(value = "采样周期", example = "0:分钟均值;1:小时均值;(目前只支持分钟均值)") @RequestParam("period") period: Byte |
| | | ) = deviceService.getHistoryValue(userId, startTime, endTime, period) |
| | | |
| | | @ApiOperation(value = "获取每个监测设备的最新分钟数据", notes = "") |