2025-02-01 01:02:27 +01:00
|
|
|
using DotBased.AspNet.Authority.Models.Authority;
|
|
|
|
|
2024-12-25 22:50:04 +01:00
|
|
|
namespace DotBased.AspNet.Authority.Repositories;
|
|
|
|
|
2025-01-08 15:55:00 +01:00
|
|
|
public interface IGroupRepository
|
2024-12-25 22:50:04 +01:00
|
|
|
{
|
2025-02-01 01:02:27 +01:00
|
|
|
public Task<ListResult<AuthorityGroupItem>> GetGroupsAsync(int limit = 20, int offset = 0, string search = "", CancellationToken cancellationToken = default);
|
2025-02-17 19:58:50 +01:00
|
|
|
public Task<Result<AuthorityGroup>> GetGroupByIdAsync(string id, CancellationToken cancellationToken = default);
|
|
|
|
public Task<Result<AuthorityGroup>> CreateGroupAsync(AuthorityGroup group, CancellationToken cancellationToken = default);
|
|
|
|
public Task<Result<AuthorityGroup>> UpdateGroupAsync(AuthorityGroup group, CancellationToken cancellationToken = default);
|
2025-02-01 01:02:27 +01:00
|
|
|
public Task<Result> DeleteGroupAsync(AuthorityGroup group, CancellationToken cancellationToken = default);
|
2024-12-25 22:50:04 +01:00
|
|
|
}
|