using AuthHex.Models; namespace AuthHex.Interfaces { public interface IRoleRepository { Task AddRoleAsync(Role role, CancellationToken ct = default); Task GetByIdAsync(Guid roleId, CancellationToken ct = default); Task GetByCodeAsync(string code, CancellationToken ct = default); Task> ListAsync(CancellationToken ct = default); Task IsAssignedToAnyUserAsync(Guid roleId, CancellationToken ct = default); Task DeleteRoleAsync(Role role, CancellationToken ct = default); } }