ITsysUserRoleRepository.cs 715 B

12345678910111213141516171819
  1. using Ropin.Inspection.Model;
  2. using Ropin.Inspection.Model.Entities;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace Ropin.Inspection.Repository.Interface
  9. {
  10. public interface ITsysUserRoleRepository : IRepositoryBase<TSYS_UserRole>, IRepositoryBaseById<TSYS_UserRole, Guid>
  11. {
  12. Task<bool> DeleteByUserIdAsync(Guid userId);
  13. Task<IEnumerable<TsysUserRoleViewModel>> GetUserRolesByUserIdAsync(Guid userId);
  14. Task<bool> DeleteByRoleIdAsync(Guid roleId);
  15. Task CreateRolePrivAsync(TSYS_RolePriv entity);
  16. Task<IEnumerable<TsysRolePrivViewModel>> GetRolePrivsByRoleIdAsync(string roleId);
  17. }
  18. }