public async Task <ApiRequestResult> UpdateAsync(UserDto dto) { var entity = await _userRepository.GetAsync(dto.Id); var newEntity = dto.EntityMap(entity); await _userRepository.UpdateAsync(newEntity); return(ApiRequestResult.Success("修改成功")); }