예제 #1
0
 /// <summary>
 /// 获取用户
 /// </summary>
 /// <param name="userFilterDto">用户筛选信息</param>
 /// <returns>返回用户信息</returns>
 public UserDto GetUser(UserFilterDto userFilterDto)
 {
     return(userService.Get(userFilterDto?.ConvertToFilter()).MapTo <UserDto>());
 }
예제 #2
0
        /// <summary>
        /// 获取用户列表
        /// </summary>
        /// <param name="userFilterDto">用户筛选信息</param>
        /// <returns>返回用户列表</returns>
        public List <UserDto> GetUserList(UserFilterDto userFilterDto)
        {
            var userList = userService.GetList(userFilterDto?.ConvertToFilter());

            return(userList.Select(c => c.MapTo <UserDto>()).ToList());
        }
예제 #3
0
        /// <summary>
        /// 获取用户分页
        /// </summary>
        /// <param name="userFilterDto">用户筛选信息</param>
        /// <returns>返回用户分页</returns>
        public IPaging <UserDto> GetUserPaging(UserFilterDto userFilterDto)
        {
            var userPaging = userService.GetPaging(userFilterDto?.ConvertToFilter());

            return(userPaging.ConvertTo <UserDto>());
        }