| | |
| | | /** |
| | | * 新增用户 |
| | | */ |
| | | @Log(title = "帐号管理", businessType = BusinessType.INSERT) |
| | | @PostMapping("/api/v1/sys-user/add") |
| | | @ApiOperation(value = "添加帐号", tags = {"管理后台-帐号管理"}) |
| | | @AdminOperationLog( |
| | |
| | | LoginUser loginUser = tokenService.getLoginUser(); |
| | | return AjaxResult.success(loginUser); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据用户编号获取详细信息 |
| | | */ |
| | |
| | | if (user.getPassword() != null && !user.getPassword().isEmpty()) { |
| | | user.setPassword(null); |
| | | } |
| | | |
| | | |
| | | user.setPhoneNumber(SensitiveDataCryptoUtil.encrypt(user.getPhoneNumber())); |
| | | userService.updateById(user); |
| | | |
| | | //删除旧的角色数据,添加新的角色 |