2022-06-29 19:46:41 -04:00
|
|
|
|
using Bit.Core.Entities;
|
2020-01-20 08:53:09 -05:00
|
|
|
|
using Bit.Core.Enums;
|
2020-01-06 14:27:16 -05:00
|
|
|
|
|
|
|
|
|
|
namespace Bit.Core.Repositories;
|
2022-08-29 16:06:55 -04:00
|
|
|
|
|
2020-01-06 14:27:16 -05:00
|
|
|
|
public interface IPolicyRepository : IRepository<Policy, Guid>
|
|
|
|
|
|
{
|
2020-01-20 08:53:09 -05:00
|
|
|
|
Task<Policy> GetByOrganizationIdTypeAsync(Guid organizationId, PolicyType type);
|
2020-01-06 14:27:16 -05:00
|
|
|
|
Task<ICollection<Policy>> GetManyByOrganizationIdAsync(Guid organizationId);
|
2020-01-28 15:33:32 -05:00
|
|
|
|
Task<ICollection<Policy>> GetManyByUserIdAsync(Guid userId);
|
2020-01-06 14:27:16 -05:00
|
|
|
|
}
|