| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "手环数据获取") |
| | | @GetMapping("bracelet/getData") |
| | | @GetMapping("getData") |
| | | public R getData(@RequestParam("pageNum") Integer pageNum, |
| | | @RequestParam("pageSize") Integer pageSize, |
| | | @RequestParam("communityId") String communityId, |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "手环数据编辑接口") |
| | | @PostMapping("bracelet/upBracelet") |
| | | @PostMapping("upBracelet") |
| | | public R upBracelet(@RequestBody BraceletUserDataDO braceletUserDataDO) |
| | | { |
| | | if(StringUtils.isEmpty(braceletUserDataDO.getDeviceId())) |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "删除设备") |
| | | @DeleteMapping("bracelet/delectData") |
| | | @DeleteMapping("delectData") |
| | | public R delectData(@RequestParam("id") String id) |
| | | { |
| | | return communityBraceletService.delectData(id); |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "手环设置SOS联系人") |
| | | @PostMapping("bracelet/setSOS") |
| | | @PostMapping("setSOS") |
| | | public R setSOS(@RequestBody SetSOS setSOS) |
| | | { |
| | | if(setSOS==null) |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取用户 手环数据详情") |
| | | @GetMapping("/bracelet/getDetails") |
| | | @GetMapping("getDetails") |
| | | public R getDetails(@RequestParam("deviceID") String deviceID) |
| | | { |
| | | return communityBraceletService.getDetails(deviceID); |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "编辑手环预警数据") |
| | | @PostMapping("/bracelet/upEarlyWarning") |
| | | @PostMapping("upEarlyWarning") |
| | | public R upEarlyWarning(@RequestBody BraceletEarlyWarningDO braceletEarlyWarningDO) { |
| | | return communityBraceletService.upEarlyWarning(braceletEarlyWarningDO); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "删除预警数据") |
| | | @DeleteMapping("/bracelet/delectEarlyWarning") |
| | | @DeleteMapping("delectEarlyWarning") |
| | | public R delectEarlyWarning(@RequestParam("id") String id) { |
| | | return communityBraceletService.delectEarlyWarning(id); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取预警数据") |
| | | @GetMapping("/bracelet/getEarlyWarningList") |
| | | @GetMapping("getEarlyWarningList") |
| | | public R getList(@RequestParam("pageNum") Integer pageNum, |
| | | @RequestParam("pageSize") Integer pageSize, |
| | | @RequestParam("communityId") String communityId, |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取单个预警信息详情") |
| | | @GetMapping("/bracelet/getEarlyWarningDetails") |
| | | @GetMapping("getEarlyWarningDetails") |
| | | public R getEarlyWarningDetails(@RequestParam("id") String id) |
| | | { |
| | | return communityBraceletService.getEarlyWarningDetails(id); |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "处理接口") |
| | | @PostMapping("/bracelet/dispose") |
| | | @PostMapping("dispose") |
| | | public R dispose(@RequestBody BraceletEarlyWarningDO braceletEarlyWarningDO) |
| | | { |
| | | return communityBraceletService.dispose(braceletEarlyWarningDO); |
| | |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "处理人") |
| | | @GetMapping("bracelet/conductorList") |
| | | @GetMapping("conductorList") |
| | | public R conductorList(@RequestParam("communityId") String communityId) |
| | | { |
| | | return communityBraceletService.conductorList(communityId); |