17 lines
573 B
C#
17 lines
573 B
C#
using RecNet.Domain.Common;
|
|
using RecNet.Domain.Entities.Profiles;
|
|
|
|
namespace RecNet.Domain.Repositories;
|
|
|
|
public interface IProfileRepository
|
|
{
|
|
Task<Profile?> GetByIdAsync(Guid profileId, CancellationToken ct = default);
|
|
Task<IReadOnlyList<Profile>> GetByIdsAsync(List<Guid> profileIds, CancellationToken ct = default);
|
|
|
|
Task<Profile?> GetByPlatform(PlatformType platform, string platformId, CancellationToken ct = default);
|
|
|
|
Task AddAsync(Profile profile, CancellationToken ct = default);
|
|
|
|
Task SaveChangesAsync(CancellationToken ct = default);
|
|
}
|