zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Domain/Aggregates/PermissionAggregate/IPermissionGrantRepository.cs

13 lines
757 B
C#
Raw Permalink Normal View History

2023-12-05 09:22:48 +00:00
using ZeroFramework.DeviceCenter.Domain.Repositories;
namespace ZeroFramework.DeviceCenter.Domain.Aggregates.PermissionAggregate
{
public interface IPermissionGrantRepository : IRepository<PermissionGrant, Guid>
{
Task<PermissionGrant?> FindAsync(string operationName, string providerName, string providerKey, Guid? resourceGroupId, CancellationToken cancellationToken = default);
Task<List<PermissionGrant>> GetListAsync(string providerName, string providerKey, Guid? resourceGroupId, CancellationToken cancellationToken = default);
Task<List<PermissionGrant>> GetListAsync(string[] operationNames, string providerName, string providerKey, Guid? resourceGroupId, CancellationToken cancellationToken = default);
}
}