refactor(backend): 重构后端admin和schedule部分

This commit is contained in:
sophie committed 2026-07-01 13:34:29 +08:00
1 parent 9f5493185d
commit 4a14960e01
74 files changed
+5937 -3644

No files matched your search

+9 -4
View File
@@ -1,10 +1,15 @@
"""
backend/app/api/schedule/__init__.py
用途:排程管理 Blueprint 入口(Wave 3:自 schedule_admin 单体迁入 _legacy)。
依赖:schedule/_legacy.py(路由实现)、schedule/* services。
逻辑:register_blueprints 从本包 import schedule_admin_bp;后续从 _legacy 拆 tasks.py / runs.py。
用途:排程管理 Blueprint 入口(Wave 3 分包)。
依赖:schedule/blueprint.py、config、tasks、runs。
逻辑:import 子模块注册路由;register_blueprints 从本包 import schedule_admin_bp。
"""
from app.api.schedule._legacy import schedule_admin_bp
from app.api.schedule.blueprint import schedule_admin_bp
import app.api.schedule.common # noqa: F401
import app.api.schedule.config # noqa: F401
import app.api.schedule.tasks # noqa: F401
import app.api.schedule.runs # noqa: F401
__all__ = ['schedule_admin_bp']