refactor: 拆分templates_editor.py巨无霸为16个模块 #806
Reference in New Issue
Block a user
Delete Branch "refactor/split-templates-editor"
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?
背景
templates_editor.py 膨胀到 2560 行,47 个路由端点,维护成本高。
改动
按功能模块拆分巨无霸文件,保持路由路径和行为完全不变:
向后兼容
__init__.pyre-export 了router、get_current_user、get_db_session、get_draft_plan_id、get_editor_services,外部引用无需修改from app.api.routes.templates_editor import router继续工作测试
🗑️ 预览环境已清理
PR #806 已关闭或合并,对应的预览环境已被清理。