docs(wiki): Wiki 全面刷新 + Q2 路线图 + 测试补强设计规格
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

- Wiki 7 文件关键数字刷新:迁移 96→103、实体 45→46、前端 163→225、测试 5→36
- 修复 architecture.md PostgreSQL 版本不一致(18→16)
- 修复 erp-ai.md 实体数 3→6、erp-health.md 实体数 45→46
- 更新 index.md 文档索引:specs 41、plans 38、discussions 18
- 新增事件注册表/方法论/分析报告引用
- 新增页面/组件测试设计规格(模式化工厂方案)
- 新增 Q2 路线图规格(技术债 + 新功能并行 8 周)
This commit is contained in:
iven
2026-05-03 22:33:08 +08:00
parent 6d1a7fba98
commit 1602b7bbad
9 changed files with 620 additions and 38 deletions

View File

@@ -1,6 +1,6 @@
---
title: erp-ai AI 分析模块
updated: 2026-04-25
updated: 2026-05-03
status: in-development
tags: [ai, llm, sse, health-analysis, claude]
---
@@ -54,13 +54,16 @@ crates/erp-ai/
│ └── ai_usage.rs ← 用量日志 Entity
```
### 实体模型(3 个实体)
### 实体模型(6 个实体)
| 实体 | 用途 |
|------|------|
| ai_prompt | Prompt 模板(版本管理、激活/回滚) |
| ai_analysis | 分析结果记录输入参数、输出摘要、token 用量) |
| ai_usage | 用量追踪(按租户/用户聚合) |
| ai_suggestion | AI 建议记录(风险分级、建议内容、状态跟踪) |
| ai_risk_threshold | 风险阈值配置(按指标定义临界值) |
| ai_action | AI 行动分发(从建议到行动的闭环跟踪) |
### 权限码6 个)