fix: align backend APIs and upload flow
This commit is contained in:
@@ -1,14 +1,17 @@
|
||||
using MessageService.Domain.Entities;
|
||||
|
||||
using MessageService.Domain.Models;
|
||||
|
||||
namespace MessageService.Domain.IReposities
|
||||
{
|
||||
public interface IConversationReposity
|
||||
{
|
||||
Task<Conversation?> FindByIdAsync(Guid id);
|
||||
Task<IEnumerable<Conversation>> FindByUserIdAsync(Guid userId);
|
||||
Task<IEnumerable<Conversation>> FindByTargetIdAsync(Guid targetId);
|
||||
Task<IEnumerable<Conversation>> FindByStreamKeyAsync(string streamKey);
|
||||
Task<Conversation?> FindByIdAsync(Guid id, CancellationToken cancellationToken = default);
|
||||
Task<IReadOnlyList<ConversationSummary>> ListByUserIdAsync(Guid userId, CancellationToken cancellationToken = default);
|
||||
Task<IEnumerable<Conversation>> FindByTargetIdAsync(Guid targetId, CancellationToken cancellationToken = default);
|
||||
Task<IEnumerable<Conversation>> FindByStreamKeyAsync(string streamKey, CancellationToken cancellationToken = default);
|
||||
Task<Conversation?> FindActiveAsync(Guid userId, Guid targetId, Enums.ChatType chatType, CancellationToken cancellationToken = default);
|
||||
void Create(Conversation conversation);
|
||||
Task<IEnumerable<string>> FindAllStreamKeyAsync(Guid userId);
|
||||
Task<IEnumerable<string>> FindAllStreamKeyAsync(Guid userId, CancellationToken cancellationToken = default);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user