修改多个问题,优化代码结构

This commit is contained in:
strepsiades
2026-04-01 16:23:43 +08:00
parent 8f4727a772
commit 7c49df94fc
29 changed files with 968 additions and 504 deletions
+4 -4
View File
@@ -26,12 +26,12 @@
### strategy(决策组织层)
- 外部入口:`sync_state_machine/sync_system/strategy.py`
- 具体实现下沉:`sync_state_machine/sync_system/strategy_ops/`
- `bind_ops.py`: `run_bind()` + `phase_core_state()/phase_dependency_check()/phase_auto_binding()`
- `create_ops.py`: `run_create()`
- `update_ops.py`: `run_update()`
- `bind_ops.py`: bind 阶段静态函数与纯工具
- `create_ops.py`: create 阶段静态函数与纯工具
- `update_ops.py`: update 阶段静态函数与纯工具
- `delete_ops.py`: `run_delete()`
- `reset_ops.py`: `run_phase2_cleanup()`
- strategy 负责收集上下文并调用状态机事件函数,不直接硬编码状态值。
- strategy 负责 bind/create/update 的相位内部编排,并调用状态机事件函数,不直接硬编码状态值。
### datasource(执行与回写层)
- 入口:`sync_state_machine/datasource/datasource.py`