端口说明: 📱 小程序 | 🖥 管理后台 | 📋 规划师端 | ⚙️ 系统自动
flowchart TD
%% ============ 颜色定义 ============
classDef actor fill:#e1f5fe,stroke:#0288d1,stroke-width:2px
classDef action fill:#fff3e0,stroke:#f57c00,stroke-width:1px
classDef system fill:#e8f5e9,stroke:#388e3c,stroke-width:1px
classDef decision fill:#fce4ec,stroke:#d32f2f,stroke-width:1px
classDef role fill:#f3e5f5,stroke:#7b1fa2,stroke-width:1px
classDef endpoint fill:#f5f5f5,stroke:#616161,stroke-width:1px
classDef portMiniApp fill:#e3f2fd,stroke:#1565c0,stroke-width:1px,stroke-dasharray:3 2
classDef portAdmin fill:#fce4ec,stroke:#c62828,stroke-width:1px,stroke-dasharray:3 2
classDef portGuide fill:#fff8e1,stroke:#f57f17,stroke-width:1px,stroke-dasharray:3 2
classDef portSystem fill:#f3e5f5,stroke:#6a1b9a,stroke-width:1px,stroke-dasharray:3 2
subgraph 用户吉祥物
A1(("👤 用户")):::portMiniApp --> A2[📱 设置吉祥物 /user/mascot/set]:::portMiniApp
A2 --> A3[📱 获取吉祥物 /user/mascot/get]:::portMiniApp
end
subgraph 用户分群
A3 --> B1[📱 RFM计算 /segmentation/rfm/calculate]:::portMiniApp
B1 --> B2[📱 RFM详情 /segmentation/rfm/detail]:::portMiniApp
B2 --> B3[📱 触发规则 /segmentation/trigger/rules]:::portMiniApp
end
subgraph 外部同步
B3 --> C1[📱 同步客户到zkxz /sncp/addClient/:clientId]:::portMiniApp
C1 --> C2[📱 获取通知 /sncp/notice/:userLogin]:::portMiniApp
end
subgraph 每日反馈
C2 --> D1[📱 获取今日反馈 /feedback/today]:::portMiniApp
D1 --> D2[📱 标记已读 /feedback/read]:::portMiniApp
D2 --> D3[📱 获取最近反馈 /feedback/recent]:::portMiniApp
end
subgraph 健康互动
D3 --> E1[📱 点赞 /health/interact/like]:::portMiniApp
end
subgraph 商品推荐
E1 --> F1[📱 维度页推荐 /recommend/dimension-products]:::portMiniApp
end
subgraph 通用工具
F1 --> G1[📱 生成小程序码 /common/qrcode]:::portMiniApp
end
R1(("👤 用户")):::actor
A1 -.- R1
| 端点 | 说明 | 端口 |
|---|---|---|
/api/user/mascot/set |
设置吉祥物 | 📱小程序 |
/api/user/mascot/get |
获取吉祥物 | 📱小程序 |
/api/segmentation/rfm/calculate |
RFM计算 | 📱小程序 |
/api/segmentation/rfm/detail |
RFM详情 | 📱小程序 |
/api/segmentation/trigger/rules |
触发规则 | 📱小程序 |
/api/sncp/addClient/{clientId} |
同步客户 | 📱小程序 |
/api/sncp/notice/{userLogin} |
获取通知 | 📱小程序 |
/api/feedback/today |
今日反馈 | 📱小程序 |
/api/feedback/read |
标记已读 | 📱小程序 |
/api/feedback/recent |
最近反馈 | 📱小程序 |
/api/health/interact/like |
点赞 | 📱小程序 |
/api/recommend/dimension-products |
维度推荐 | 📱小程序 |
/api/common/qrcode |
生成小程序码 | 📱小程序 |
/api/onboarding/progress |
引导进度 | 📱小程序 |
/api/onboarding/claim |
领取奖励 | 📱小程序 |