feat: 添加汇率服务和缓存服务,优化数据源和日志服务
refactor: 重构数据源工厂和类型定义,提升代码可维护性 fix: 修复类型转换和状态机文档中的错误 docs: 更新服务架构文档,添加新的服务闭环流程 test: 添加汇率服务单元测试 chore: 清理无用代码和注释,优化代码结构
This commit is contained in:
@@ -171,7 +171,68 @@ Scheduler / Manual Trigger
|
||||
|
||||
---
|
||||
|
||||
## 12. 异常处理闭环
|
||||
## 12. AI决策日志闭环
|
||||
|
||||
Flow:
|
||||
AI Service / Controller
|
||||
→ AIDecisionLogService.createLog
|
||||
→ AI Decision Execution
|
||||
→ AIDecisionLogService.updateExecutionStatus
|
||||
→ [Optional] AIDecisionLogService.recordHumanIntervention
|
||||
→ Response
|
||||
|
||||
---
|
||||
|
||||
## 13. 多租户数据隔离闭环
|
||||
|
||||
Flow:
|
||||
Request
|
||||
→ HierarchyAuthMiddleware.create
|
||||
→ HierarchyAuthMiddleware.buildContext
|
||||
→ DataIsolationService.buildIsolationQuery
|
||||
→ Service Layer Operations
|
||||
→ Response
|
||||
|
||||
---
|
||||
|
||||
## 14. 层级管理闭环
|
||||
|
||||
Flow:
|
||||
Frontend
|
||||
→ HierarchyController
|
||||
→ HierarchyService.createDepartment / createShop
|
||||
→ DataIsolationService.validateHierarchy
|
||||
→ EventBusService.publish
|
||||
→ Response
|
||||
|
||||
---
|
||||
|
||||
## 15. 订单多店铺聚合闭环
|
||||
|
||||
Flow:
|
||||
Frontend
|
||||
→ OrderController
|
||||
→ OrderAggregationService.getAggregationStats
|
||||
→ DataIsolationService.buildIsolationQuery
|
||||
→ RedisService.get/set (缓存)
|
||||
→ Response
|
||||
|
||||
---
|
||||
|
||||
## 16. 订单同步闭环
|
||||
|
||||
Flow:
|
||||
Frontend
|
||||
→ OrderController.syncShopOrders
|
||||
→ OrderAggregationService.syncShopOrders
|
||||
→ PlatformAPI.fetchOrders
|
||||
→ OrderRepository.upsert
|
||||
→ EventBusService.publish('order.sync.completed')
|
||||
→ Response
|
||||
|
||||
---
|
||||
|
||||
## 17. 异常处理闭环
|
||||
|
||||
Flow:
|
||||
Frontend / System
|
||||
|
||||
Reference in New Issue
Block a user