| | |
| | | @GetMapping("/area/get") |
| | | public R areaGet(@RequestParam Long areaId) { |
| | | Area area = areaService.getById(areaId); |
| | | MapAreaResult areaResult = new MapAreaResult(); |
| | | return R.ok().add(areaResult.sync(area)); |
| | | return R.ok().add(new MapAreaResult().sync(area)); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:loc:update')") |
| | |
| | | @PreAuthorize("hasAuthority('manager:loc:update')") |
| | | @PostMapping("/area/update") |
| | | public R areaUpdate(@RequestBody MapAreaParam param) { |
| | | return R.ok(); |
| | | return R.ok().add(areaService.modifyMapArea(param, getLoginUserId())); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:loc:remove')") |
| | | @PostMapping("/area/remove") |
| | | public R areaRemove(@RequestBody MapAreaParam param) { |
| | | areaService.removeMapArea(param.getId(), getLoginUserId()); |
| | | return R.ok(); |
| | | } |
| | | |