fix: 完成消息 Outbox 投递与会话状态保护

This commit is contained in:
root
2026-09-16 13:41:59 +08:00
parent 13b8b9ded8
commit 8a12c04104
9 changed files with 621 additions and 46 deletions
@@ -6,11 +6,20 @@ import { ChatGateway } from "./chat.gateway.js";
import { ChatRateLimiter } from "./chat-rate-limiter.js";
import { ConversationController } from "./conversation.controller.js";
import { ConversationService } from "./conversation.service.js";
import { CHAT_PUBLISHER, OutboxMessageRelay } from "./outbox-message-relay.js";
import { StateChangingOriginGuard } from "./state-changing-origin.guard.js";
@Module({
imports: [DatabaseModule, RedisModule, AuthModule],
controllers: [ConversationController],
providers: [ConversationService, ChatRateLimiter, ChatGateway],
exports: [ConversationService],
providers: [
ConversationService,
ChatRateLimiter,
ChatGateway,
{ provide: CHAT_PUBLISHER, useExisting: ChatGateway },
OutboxMessageRelay,
StateChangingOriginGuard,
],
exports: [ConversationService, OutboxMessageRelay],
})
export class ConversationModule {}