fix: align backend APIs and upload flow
This commit is contained in:
@@ -4,8 +4,9 @@ namespace MessageService.Domain.IReposities
|
||||
{
|
||||
public interface IMessageReposity
|
||||
{
|
||||
Task<Message?> FindByIdAsync(Guid id);
|
||||
Task<(IEnumerable<Message> messages, bool hasMore)> GetAsync(string streamKey, long? cusor, int direction, int limit);
|
||||
Task<Message?> FindByIdAsync(Guid id, CancellationToken cancellationToken = default);
|
||||
Task<(IEnumerable<Message> messages, bool hasMore)> GetAsync(string streamKey, long? cusor, int direction, int limit, CancellationToken cancellationToken = default);
|
||||
Task<(IEnumerable<Message> messages, bool hasMore)> SearchAsync(string streamKey, string keyword, long? cursor, int limit, CancellationToken cancellationToken = default);
|
||||
void Create(Message message);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user