示例#1
0
        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);
        }
示例#2
0
        /// <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));
        }
示例#3
0
 public Entities.SysUser FindAccount(int Id)
 {
     return(service.Get(Id));
 }