## 概述 为 authorization-service 实现 Outbox 模式,确保数据库事务和 Kafka 事件发布的原子性。 ## 新增表 - OutboxEvent: 事件暂存表,用于事务性事件发布 ## 新增组件 - OutboxRepository: Outbox 事件持久化 - OutboxPublisherService: 轮询发布未处理事件到 Kafka ## 支持的事件 - authorization-events: 授权角色创建/更新事件(省公司、市公司授权) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| api | ||
| application | ||
| config | ||
| domain | ||
| infrastructure | ||
| shared | ||
| app.module.ts | ||
| main.ts | ||