feat(msg): v2 ARB-013 topic 命名统一 + 考试事件消费

ARB-013 P0 修复:PRODUCER_TOPIC_MAP 从 edu.notification.* 改为 edu.notify.notification.*

kafka.consumer 新增 3 考试实时事件消费(exam.extended/force_submitted/question_reordered)

嵌套 payload 解包支持 + topic-map 扩展

新增 6 测试数据文件(docker-notify + 5 kafka 事件 json)

101 单元测试通过 + Docker 真实环境验证
This commit is contained in:
SpecialX
2026-07-14 23:00:33 +08:00
parent ad39a3bb0f
commit 765f7da4c0
13 changed files with 695 additions and 35 deletions

View File

@@ -28,8 +28,9 @@ RUN cd packages/shared-ts && pnpm build
WORKDIR /app/services/msg
RUN pnpm build
# 剪枝 devDependencies
RUN cd /app/services/msg && pnpm prune --prod
# 剪枝 devDependencies(用 install --prod 替代 prune避免触发 husky prepare
ENV CI=true HUSKY=0
RUN cd /app/services/msg && pnpm install --prod --ignore-scripts
# Runtime stage
FROM node:22-alpine