| | |
| | | } |
| | | |
| | | @PreAuthorize("@ss.hasPermission('data:point:create')") |
| | | @PostMapping("/data:point") |
| | | @PostMapping("create") |
| | | public CommonResult<Boolean> create(@RequestBody DaPointDTO daPointDTO){ |
| | | String id = UUID.randomUUID().toString(); |
| | | daPointDTO.setId(id); |
| | |
| | | |
| | | @PreAuthorize("@ss.hasPermission('data:point:delete')") |
| | | @DeleteMapping("/delete") |
| | | public CommonResult<Boolean> delete(String[] ids) { |
| | | daPointService.delete(ids); |
| | | public CommonResult<Boolean> delete(String id) { |
| | | daPointService.delete(new String[]{id}); |
| | | return success(true); |
| | | } |
| | | |