docs/README: 更新架构设计 ASCII 图反映重构后路径
- 用户界面层从 "gui_app.py / web_gui.py / run_cli.py" 改为 "bin/run_cli.py / bin/gui_app.py / bin/webgui_launcher.py" - 底层操作层从 "operations/ device/screenshot/ocr" 改为 "douyin/core/underlying_operations.py + operations/ (向后兼容包装)" (删除已删的 device_operations.py 提及) - 路径配置从 "path_config.py" 改为 "douyin/core/path_config.py" Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
1 parent
ae3f276f56
commit
20aefbb3a1
1 file changed
+33
-33
@@ -298,39 +298,39 @@ pytest tests/unit/test_example.py::test_some_behavior -q
|
||||
### 架构设计
|
||||
|
||||
```
|
||||
┌─────────────────────────────────────────┐
|
||||
│ GUI / Web GUI / CLI (用户界面层) │
|
||||
│ gui_app.py / web_gui.py / run_cli.py │
|
||||
└──────────────┬──────────────────────────┘
|
||||
│
|
||||
┌──────────────▼──────────────────────────┐
|
||||
│ douyin/core/douyin_fudai.py │
|
||||
│ fudai_analyse (Mixin 组合模式) │
|
||||
│ (核心调度器 - 主流程控制) │
|
||||
└──────────────┬──────────────────────────┘
|
||||
│
|
||||
┌──────────┼──────────┐
|
||||
│ │ │
|
||||
┌───▼───┐ ┌───▼───┐ ┌───▼───┐
|
||||
│阶段诊断│ │福袋核心│ │弹窗处理│
|
||||
│stage/ │ │fudai/ │ │handlers│
|
||||
└───────┘ └───────┘ └───────┘
|
||||
│ │ │
|
||||
└──────────┼──────────┘
|
||||
│
|
||||
┌──────────────▼──────────────────────────┐
|
||||
│ operations/ (底层操作模块) │
|
||||
│ device / screenshot / ocr │
|
||||
└──────────────┬──────────────────────────┘
|
||||
│
|
||||
┌──────────────▼──────────────────────────┐
|
||||
│ path_config.py (路径配置) │
|
||||
│ 统一管理所有文件路径 │
|
||||
└──────────────┬──────────────────────────┘
|
||||
│
|
||||
┌──────────────▼──────────────────────────┐
|
||||
│ ADB / PaddleOCR (系统底层接口) │
|
||||
└─────────────────────────────────────────┘
|
||||
┌────────────────────────────────────────────────┐
|
||||
│ bin/run_cli.py / bin/gui_app.py / bin/webgui │
|
||||
│ (用户界面 / CLI 入口层) │
|
||||
└──────────────────┬─────────────────────────────┘
|
||||
│
|
||||
┌──────────────────▼─────────────────────────────┐
|
||||
│ douyin/core/douyin_fudai.py │
|
||||
│ fudai_analyse (Mixin 组合模式) │
|
||||
│ (核心调度器 - 主流程控制) │
|
||||
└──────────────────┬─────────────────────────────┘
|
||||
│
|
||||
┌───────────┼───────────┐
|
||||
│ │ │
|
||||
┌──────▼──┐ ┌─────▼──┐ ┌─────▼──┐
|
||||
│阶段诊断 │ │福袋核心│ │弹窗处理│
|
||||
│stage/ │ │fudai/ │ │handlers│
|
||||
└─────────┘ └────────┘ └────────┘
|
||||
│ │ │
|
||||
└───────────┼───────────┘
|
||||
│
|
||||
┌──────────────────▼─────────────────────────────┐
|
||||
│ douyin/core/underlying_operations.py + │
|
||||
│ operations/ (向后兼容包装:ocr / screenshot) │
|
||||
└──────────────────┬─────────────────────────────┘
|
||||
│
|
||||
┌──────────────────▼─────────────────────────────┐
|
||||
│ douyin/core/path_config.py (路径配置) │
|
||||
│ 统一管理所有文件路径 │
|
||||
└──────────────────┬─────────────────────────────┘
|
||||
│
|
||||
┌──────────────────▼─────────────────────────────┐
|
||||
│ ADB / PaddleOCR (系统底层接口) │
|
||||
└────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
**设计特点**:
|
||||
|
||||
Reference in new issue
Block a user