| | |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:user:save')") |
| | | @OperationLog("添加User") |
| | | @OperationLog("添加用户") |
| | | @PostMapping("/user/save") |
| | | public R save(@RequestBody User user) { |
| | | if (!userService.save(user)) { |
| | |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:user:update')") |
| | | @OperationLog("修改User") |
| | | @OperationLog("修改用户") |
| | | @PostMapping("/user/update") |
| | | public R update(@RequestBody User user) { |
| | | if (!userService.updateById(user)) { |
| | |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('system:user:remove')") |
| | | @OperationLog("删除User") |
| | | @OperationLog("删除用户") |
| | | @PostMapping("/user/remove/{ids}") |
| | | public R remove(@PathVariable Long[] ids) { |
| | | if (!userService.removeByIds(Arrays.asList(ids))) { |