16 lines
611 B
C#
16 lines
611 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Knot.Modules.Profiles.Domain;
|
|
|
|
public interface IProfileRepository
|
|
{
|
|
Task<ProfileDocument?> GetByIdAsync(Guid id, CancellationToken ct = default);
|
|
Task<ProfileDocument?> GetByUsernameAsync(string username, CancellationToken ct = default);
|
|
Task AddAsync(ProfileDocument profile, CancellationToken ct = default);
|
|
Task UpdateAsync(ProfileDocument profile, CancellationToken ct = default);
|
|
Task<List<ProfileDocument>> SearchAsync(string query, CancellationToken ct = default);
|
|
}
|