public UserOutputDto GetForm(string keyword) { SysUserEntity userEntityList = _sysUserRepository.Get(keyword); UserDto userDtoList = AutoMapper.Mapper.Map <UserDto>(userEntityList); UserOutputDto outputDto = new UserOutputDto(); outputDto.UserDtoSingle = userDtoList; return(outputDto); }
/// <summary> /// 得到当前用户信息(主要用于前端F5刷新) /// </summary> /// <returns></returns> public async Task <IResponseEntity> GetUserInfoAsync() { var user = _userRepository.Get(_authUser.Id); var res = await getUserItem(user); return(ResponseEntity.Ok(res)); }
public Entities.SysUser FindAccount(int Id) { return(service.Get(Id)); }