mirror of
https://github.com/bitwarden/server.git
synced 2025-07-06 10:32:49 -05:00
create/get/update collection with groups
This commit is contained in:
@ -8,8 +8,11 @@ namespace Bit.Core.Repositories
|
||||
public interface ICollectionRepository : IRepository<Collection, Guid>
|
||||
{
|
||||
Task<int> GetCountByOrganizationIdAsync(Guid organizationId);
|
||||
Task<Tuple<Collection, ICollection<Guid>>> GetByIdWithGroupsAsync(Guid id);
|
||||
Task<ICollection<Collection>> GetManyByOrganizationIdAsync(Guid organizationId);
|
||||
Task<ICollection<Collection>> GetManyByUserIdAsync(Guid userId);
|
||||
Task CreateAsync(Collection obj, IEnumerable<Guid> groupIds);
|
||||
Task ReplaceAsync(Collection obj, IEnumerable<Guid> groupIds);
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user