feat(chat): add private message unlock flow

This commit is contained in:
2026-06-23 13:21:57 +08:00
parent c9d75b6fe6
commit ebd44c4980
20 changed files with 455 additions and 29 deletions
@@ -32,6 +32,12 @@ export interface IChatRepository {
/** 解锁私密消息。 */
unlockPrivateMessage(messageId: string): Promise<Result<UnlockPrivateResponse>>;
/** 把本地缓存中的私密消息标记为已解锁。 */
markPrivateMessageUnlockedInLocal(
messageId: string,
content: string,
): Promise<Result<void>>;
/** 把一条消息写入本地存储。 */
saveMessageToLocal(message: ChatMessage): Promise<Result<void>>;