diff --git a/douyin/reservation/core/__init__.py b/douyin/reservation/core/__init__.py index 3beefff..5305666 100644 --- a/douyin/reservation/core/__init__.py +++ b/douyin/reservation/core/__init__.py @@ -1,10 +1,9 @@ """预约核心模块 -本目录包含从 douyin_reservation_logic.py 模块化后的预约核心逻辑。 +从 douyin_reservation_logic.py 拆出来的预约核心逻辑:纯函数 + 数据处理。 +对外仍统一通过本包导出,避免下游代码直接耦合到 douyin_reservation_logic 内部。 """ -# 临时导入:从原文件导入,后续会逐步迁移 -# TODO: 迁移完成后改为从子模块导入 from ...reservation.douyin_reservation_logic import ( _now_ts, _normalize_room_title_for_matching, diff --git a/operations/__init__.py b/operations/__init__.py index 32381ad..e8ecb9c 100644 --- a/operations/__init__.py +++ b/operations/__init__.py @@ -1,6 +1,7 @@ """底层操作模块 -本目录包含从 Underlying_Operations.py 模块化后的操作模块。 +本目录包含从 douyin/core/underlying_operations.py 模块化拆分出的子模块。 +对外仍统一通过本包导出符号,避免下游代码直接耦合到内部子模块路径。 """ # 从子模块导入 @@ -17,8 +18,7 @@ from .screenshot_operations import ( save_reward_pic, ) -# 从原文件导入以保持向后兼容 -# TODO: 逐步迁移后改为从子模块导入 +# 从原始大文件再导出,保持向后兼容;新代码请优先使用上面的子模块导入。 from douyin.core.underlying_operations import ( _safe_replace_file, _ensure_parent_dir,