mirror of
https://github.com/bitwarden/server
synced 2025-12-13 14:53:34 +00:00
Device repository and cascase device delete on user delete
This commit is contained in:
13
src/Core/Repositories/IDeviceRepository.cs
Normal file
13
src/Core/Repositories/IDeviceRepository.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Bit.Core.Domains;
|
||||
|
||||
namespace Bit.Core.Repositories
|
||||
{
|
||||
public interface IDeviceRepository : IRepository<Device, Guid>
|
||||
{
|
||||
Task<Device> GetByIdAsync(Guid id, Guid userId);
|
||||
Task<ICollection<Device>> GetManyByUserIdAsync(Guid userId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user