| | |
| | | return R.ok(); |
| | | } |
| | | |
| | | // @RequestMapping(value = "/resource/delete/auth") |
| | | // @ManagerAuth(memo = "菜单删除") |
| | | // public R delete(Integer[] ids){ |
| | | // if (Cools.isEmpty(ids)){ |
| | | // return R.error(); |
| | | // } |
| | | // resourceService.deleteBatchIds(Arrays.asList(ids)); |
| | | // return R.ok(); |
| | | // } |
| | | |
| | | @RequestMapping(value = "/resource/delete/auth") |
| | | @ManagerAuth(memo = "菜单删除") |
| | | public R delete(Integer[] ids){ |
| | | if (Cools.isEmpty(ids)){ |
| | | return R.error(); |
| | | @ManagerAuth |
| | | public R delete(@RequestParam(value="ids[]") Long[] ids){ |
| | | for (Long id : ids){ |
| | | resourceService.deleteById(id); |
| | | } |
| | | resourceService.deleteBatchIds(Arrays.asList(ids)); |
| | | return R.ok(); |
| | | } |
| | | |