DotBased/DotBased.AspNet.Authority/Repositories/IRoleRepository.cs

12 lines
768 B
C#
Raw Normal View History

using DotBased.AspNet.Authority.Models.Authority;
2024-12-25 22:50:04 +01:00
namespace DotBased.AspNet.Authority.Repositories;
public interface IRoleRepository
2024-12-25 22:50:04 +01:00
{
public Task<ListResult<AuthorityRoleItem>> GetRolesAsync(int limit = 20, int offset = 0, string search = "", CancellationToken cancellationToken = default);
public Task<Result<AuthorityRole>> GetRoleByIdAsync(string id, CancellationToken cancellationToken = default);
public Task<Result<AuthorityRole>> CreateRoleAsync(AuthorityRole role, CancellationToken cancellationToken = default);
public Task<Result<AuthorityRole>> UpdateRoleAsync(AuthorityRole role, CancellationToken cancellationToken = default);
public Task<Result> DeleteRoleAsync(AuthorityRole role, CancellationToken cancellationToken = default);
2024-12-25 22:50:04 +01:00
}