| | |
| | | [HttpPost] |
| | | public async Task<int> UpdateBackClientUser(UpdateBackClientUserInput input) |
| | | { |
| | | |
| | | var identityUser = await _identityUserService.GetAsync(input.Id); |
| | | |
| | | CheckExtensions.IfTrueThrowUserFriendlyException(identityUser == null, |
| | | "用户不存在"); |
| | | await _identityUserService.UpdateAsync(input.Id, new IdentityUserUpdateDto |
| | | { |
| | | Name = input.Name, |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 重置密码 |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | public virtual async Task<int> ResetUserPassword(ResetPasswordBaseInput input) |
| | | { |
| | | await _userRoleService.ResetPassword(input); |
| | | |
| | | return Constant.SUCCESS; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 删除后台管理账户 |
| | | /// </summary> |
| | | /// <param name="id">用户Id</param> |