Ejemplo n.º 1
0
        /// <summary>
        /// 获取权限
        /// </summary>
        /// <param name="filter">权限筛选信息</param>
        /// <returns>返回权限</returns>
        public PermissionDto GetPermission(PermissionFilterDto filter)
        {
            var permission = permissionService.Get(filter?.ConvertToFilter());

            return(permission.MapTo <PermissionDto>());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取权限列表
        /// </summary>
        /// <param name="filter">权限筛选信息</param>
        /// <returns>返回权限列表</returns>
        public List <PermissionDto> GetPermissionList(PermissionFilterDto filter)
        {
            var permissionList = permissionService.GetList(filter?.ConvertToFilter());

            return(permissionList.Select(c => c.MapTo <PermissionDto>()).ToList());
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 获取权限分页
        /// </summary>
        /// <param name="filter">权限筛选信息</param>
        /// <returns>返回权限分页</returns>
        public IPaging <PermissionDto> GetPermissionPaging(PermissionFilterDto filter)
        {
            var permissionPaging = permissionService.GetPaging(filter?.ConvertToFilter());

            return(permissionPaging.ConvertTo <PermissionDto>());
        }