添加项目文件。

This commit is contained in:
2026-04-30 21:08:28 +08:00
parent c60f5fe117
commit cc017b6495
327 changed files with 12860 additions and 0 deletions
@@ -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);
}
}