From b84545b22af41ce43d4a007f75b64b85db7f54d2 Mon Sep 17 00:00:00 2001 From: cuizhan <3971687@qq.com> Date: Sat, 20 Dec 2025 22:49:14 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=8A=80=E6=9C=AF=E5=80=BA=E5=8A=A1?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=B7=BB=E5=8A=A0=E6=80=BB=E8=A7=88=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在文档开头添加技术债务总览表格 - 包含:编号、加入时间、债务描述、优先级、影响分析、解决方案链接 - 添加统计信息:总计6项,中优先级1项,低优先级5项 - 所有编号可点击跳转到详细章节 --- docs/technical_debt.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/technical_debt.md b/docs/technical_debt.md index 0fe3935..47ad0c0 100644 --- a/docs/technical_debt.md +++ b/docs/technical_debt.md @@ -15,6 +15,25 @@ --- +## 技术债务总览 + +| 编号 | 加入时间 | 债务描述 | 优先级 | 影响分析 | 解决方案 | +|------|---------|---------|--------|---------|---------| +| [TD-001](#-td-001-配置类改用-pydantic) | 2025-12-20 | 配置类使用 dict,缺乏类型安全和验证 | 🟡 中 | 配置错误只能运行时发现;缺少 IDE 提示;维护困难 | [Pydantic 配置模型](#-td-001-配置类改用-pydantic) | +| [TD-002](#-td-002-validationresult-改用-pydantic) | 2025-12-20 | ValidationResult 使用简单类 | 🟢 低 | API 序列化不便;缺少类型检查 | [Pydantic 模型](#-td-002-validationresult-改用-pydantic) | +| [TD-003](#-td-003-关键-dataframe-使用-pandera-验证) | 2025-12-20 | DataFrame 无 schema 验证 | 🟢 低 | 列名拼写错误运行时才发现;缺少数据验证 | [Pandera Schema](#-td-003-关键-dataframe-使用-pandera-验证) | +| [TD-004](#-td-004-业务对象使用-pydantic未来需求) | 2025-12-20 | 缺少业务对象定义(Order/Position) | 🟢 低 | Phase 3 回测需要;类型不安全 | [业务对象模型](#-td-004-业务对象使用-pydantic未来需求) | +| [TD-005](#-td-005-redis-分布式缓存扩展性需求) | 2025-12-20 | 单机内存缓存,无法分布式共享 | 🟢 低 | 多进程无法共享;重启数据丢失 | [Redis 缓存实现](#-td-005-redis-分布式缓存扩展性需求) | +| [TD-006](#-td-006-性能监控和-profiling) | 2025-12-20 | 缺少性能监控和 Profiling | 🟢 低 | 无法发现性能瓶颈;缺少健康度监控 | [监控装饰器](#-td-006-性能监控和-profiling) | + +**统计:** +- 总计:6 项技术债务 +- 高优先级(🔴):0 项 +- 中优先级(🟡):1 项 +- 低优先级(🟢):5 项 + +--- + ## 债务分类 ### 🔴 高优先级(影响性能或安全性)