feat: 智能助手支持软删会话并级联隐藏消息

This commit is contained in:
2026-09-26 16:47:01 +08:00
parent 13a2bd9274
commit 85bac4f710
9 changed files with 203 additions and 13 deletions
+7
View File
@@ -58,6 +58,13 @@ class MessageRepository(ABC):
@abstractmethod
async def next_seq(self, company_id: int, user_id: str, thread_id: str) -> int: ...
@abstractmethod
async def soft_delete_by_thread(
self, company_id: int, user_id: str, thread_id: str
) -> int:
"""软删某会话下全部消息,返回影响条数。"""
...
class MemoryRepository(ABC):
@abstractmethod