添加项目文件。
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using MessageService.Domain.Entities;
|
||||
|
||||
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);
|
||||
void Create(Conversation conversation);
|
||||
Task<IEnumerable<string>> FindAllStreamKeyAsync(Guid userId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using MessageService.Domain.Entities;
|
||||
|
||||
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);
|
||||
void Create(Message message);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user