IRolesAppService.cs 834 B

123456789101112131415161718192021
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using System.Web.Mvc;
  4. using Abp.Application.Services;
  5. using Abp.Application.Services.Dto;
  6. using ShwasherSys.BaseSysInfo.Roles.Dto;
  7. using IwbZero.AppServiceBase;
  8. namespace ShwasherSys.BaseSysInfo.Roles
  9. {
  10. public interface IRolesAppService : IAsyncCrudAppService<RoleDto, int, PagedRequestDto, RoleCreateDto, RoleUpdateDto>
  11. {
  12. Task<RoleDto> GetRoleByIdAsync(int roleId);
  13. List<SelectListItem> GetRoleTypeSelect();
  14. Task<bool> IsGrantedAsync(int roleId, string permissionNmae);
  15. Task<PagedResultDto<RoleDtoModel>> GetAllRole(PagedRequestDto input);
  16. Task<ListResultDto<PermissionDto>> GetAllPermissions();
  17. //Task<PagedResultDto<RoleDto>> GetRoles(PagedResultRequestDto input);
  18. Task Auth(AuthDto input);
  19. }
  20. }