feat(iit-manager): Day 3 企业微信集成开发完成

- 新增WechatService(企业微信推送服务,支持文本/卡片/Markdown消息)
- 新增WechatCallbackController(异步回复模式,5秒内响应)
- 完善iit_quality_check Worker(调用WechatService推送通知)
- 新增企业微信回调路由(GET验证+POST接收消息)
- 实现LLM意图识别(query_weekly_summary/query_patient_info等)
- 安装依赖:@wecom/crypto, xml2js
- 更新开发记录文档和MVP开发计划

技术要点:
- 使用异步回复模式规避企业微信5秒超时限制
- 使用@wecom/crypto官方库处理XML加解密
- 使用setImmediate实现后台异步处理
- 支持主动推送消息返回LLM处理结果
- 完善审计日志记录(WECHAT_NOTIFICATION_SENT/WECHAT_INTERACTION)

相关文档:
- docs/03-业务模块/IIT Manager Agent/06-开发记录/Day3-企业微信集成开发完成记录.md
- docs/03-业务模块/IIT Manager Agent/04-开发计划/最小MVP闭环开发计划.md
- docs/03-业务模块/IIT Manager Agent/00-模块当前状态与开发指南.md
This commit is contained in:
2026-01-03 09:39:39 +08:00
parent 36ce1bbcb2
commit 5f089516cb
144 changed files with 144 additions and 0 deletions

View File

@@ -51,5 +51,6 @@ WHERE table_schema = 'dc_schema'

View File

@@ -89,5 +89,6 @@ ORDER BY ordinal_position;

View File

@@ -102,5 +102,6 @@ runMigration()

View File

@@ -36,5 +36,6 @@ COMMENT ON COLUMN "dc_schema"."dc_tool_c_sessions"."column_mapping" IS '列名

View File

@@ -63,5 +63,6 @@ COMMENT ON COLUMN dc_schema.dc_tool_c_sessions.expires_at IS '过期时间(创

View File

@@ -105,3 +105,4 @@ Write-Host ""

View File

@@ -213,5 +213,6 @@ function extractCodeBlocks(obj, blocks = []) {

View File

@@ -232,5 +232,6 @@ checkDCTables();

View File

@@ -184,5 +184,6 @@ createAiHistoryTable()

View File

@@ -171,5 +171,6 @@ createToolCTable()

View File

@@ -168,5 +168,6 @@ createToolCTable()

View File

@@ -300,5 +300,6 @@ export function getBatchItems<T>(

View File

@@ -336,5 +336,6 @@ runTests().catch((error) => {

View File

@@ -315,5 +315,6 @@ Content-Type: application/json

View File

@@ -251,5 +251,6 @@ export const conflictDetectionService = new ConflictDetectionService();

View File

@@ -201,5 +201,6 @@ curl -X POST http://localhost:3000/api/v1/dc/tool-c/test/execute \

View File

@@ -255,5 +255,6 @@ export const streamAIController = new StreamAIController();

View File

@@ -152,3 +152,4 @@ testIitDatabase()

View File

@@ -222,3 +222,4 @@ export interface CachedProtocolRules {

View File

@@ -401,5 +401,6 @@ SET session_replication_role = 'origin';

View File

@@ -103,5 +103,6 @@ WHERE key = 'verify_test';

View File

@@ -246,5 +246,6 @@ verifyDatabase()

View File

@@ -36,5 +36,6 @@ export {}

View File

@@ -59,5 +59,6 @@ Write-Host "✅ 完成!" -ForegroundColor Green

View File

@@ -346,5 +346,6 @@ runAdvancedTests().catch(error => {

View File

@@ -412,5 +412,6 @@ runAllTests()

View File

@@ -370,5 +370,6 @@ runAllTests()