chore(#782): 清理废弃文件 init-tables.sql / routers.py / api_docs.html #785
Reference in New Issue
Block a user
Delete Branch "cleanup/remove-deprecated-files"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
close #782
变更内容
删除3个确认废弃的文件:
init-tables.sql— 已被SQLAlchemy models和Alembic迁移工具取代,文件头已标注deprecatedapps/api/routers.py— 旧版路由文件,主入口已改用app/api/router.pyapi_docs.html— 旧版静态API文档,已被FastAPI自动生成的/docs取代验证
apps/api/main.py从app.api.router导入,不引用旧routers641e0700ceto74841dab13代码审查结果 - PR #785
⚠️ 问题(1个需要修改)
/health接口定义。如果主应用入口文件(如main.py或app.py)中仍存在from apps.api.routers import router或include_router的引用,将导致应用启动失败(ImportError或ModuleNotFoundError)。此外,若外部监控系统(如 Kubernetes Liveness Probe)依赖此/health端点,删除后将导致服务被判定为不健康并重启。💡 建议(2个可选)
✅ 格式检查通过 | ❌ 逻辑审查需修改 | ✅ 性能无问题
🤖 由 AI 代码审查机器人自动生成 | 2026-07-23 14:20:26 | 模型:
🗑️ 预览环境已清理
PR #785 已关闭或合并,对应的预览环境已被清理。