| | |
| | | @PostMapping(value = "/api/t-app-user/delUser") |
| | | public R<?> delUser(@RequestBody String param) { |
| | | UserIdDto dto = JSON.parseObject(param, UserIdDto.class); |
| | | TAppUser appUser = appUserService.getById(dto.getId()); |
| | | appUser.setDisabled(true); |
| | | appUserService.updateById(appUser); |
| | | // TAppUser appUser = appUserService.getById(dto.getId()); |
| | | // appUser.setDisabled(true); |
| | | appUserService.removeById(dto.getId()); |
| | | return R.ok(); |
| | | } |
| | | |
| | |
| | | * 禁用/启用 |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('system:user:updateStatus')") |
| | | @ApiOperation(value = "禁用/启用") |
| | | @ApiOperation(value = "禁用/启用", response = UpAndDownDTO.class) |
| | | @PostMapping(value = "/api/t-app-user/updateStatus") |
| | | public R<?> updateStatus(@RequestBody String param) { |
| | | UpAndDownDTO dto = JSON.parseObject(param, UpAndDownDTO.class); |