IRolePermissionRepository.cs 729 B

12345678910111213141516171819202122
  1. using MTWorkHR.Core.IDto;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace MTWorkHR.Core.IRepositories
  8. {
  9. public interface IRolePermissionRepository<T> where T : class
  10. {
  11. Task<Tuple<ICollection<T>, int>> GetAllAsync(IPagingInputDto pagingInputDto);
  12. Task<T> GetByIdAsync(long id);
  13. Task<T> AddAsync(T entity);
  14. Task<IList<T>> AddRangeAsync(IList<T> entity);
  15. Task DeleteAsync(T entity);
  16. Task DeleteAsync(IEnumerable<T> entities);
  17. Task<string[]> GetRolePermissionsIdsByRoleID(string id);
  18. Task<List<T>> GetRemovedRolePermissionsIdsByRoleID(string id, string[] permissionIds);
  19. }
  20. }