zeroframework/Services/DeviceCenter/ZeroFramework.DeviceCenter.Domain/Aggregates/PermissionAggregate/IPermissionGrantRepository.cs
2023-12-05 17:22:48 +08:00

13 lines
757 B
C#

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);
}
}