mirror of
https://github.com/bitwarden/server.git
synced 2025-04-29 08:42:19 -05:00
16 lines
491 B
C#
16 lines
491 B
C#
using System;
|
|
using Bit.Core.Models.Table;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using Bit.Core.Enums;
|
|
|
|
namespace Bit.Core.Repositories
|
|
{
|
|
public interface IPolicyRepository : IRepository<Policy, Guid>
|
|
{
|
|
Task<Policy> GetByOrganizationIdTypeAsync(Guid organizationId, PolicyType type);
|
|
Task<ICollection<Policy>> GetManyByOrganizationIdAsync(Guid organizationId);
|
|
Task<ICollection<Policy>> GetManyByUserIdAsync(Guid userId);
|
|
}
|
|
}
|