14 lines
496 B
C#
14 lines
496 B
C#
using AuthHex.Models;
|
|
|
|
namespace AuthHex.Interfaces
|
|
{
|
|
public interface IRoleManageRepository
|
|
{
|
|
Task<Role> AddRoleAsync(Role role, CancellationToken ct = default);
|
|
Task<Role?> GetRoleByIdAsync(Guid roleId, CancellationToken ct = default);
|
|
Task<List<Role>> ListRolesAsync(CancellationToken ct = default);
|
|
Task<bool> RoleInUseAsync(Guid roleId, CancellationToken ct = default);
|
|
Task DeleteRoleAsync(Role role, CancellationToken ct = default);
|
|
}
|
|
}
|