# 用户使用流程图 — 心理与情绪管理 ```mermaid 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,shape:box subgraph 情绪打卡 A1(("用户")) --> A2[创建情绪打卡 /mind/checkin/create] A2 --> A3[获取情绪列表 /mind/checkin/list] A3 --> A4[获取最新情绪 /mind/checkin/latest] A4 --> A5[获取情绪趋势 /mind/checkin/trend] A5 --> A6[获取情绪统计 /mind/checkin/stats] A6 --> A7[获取周报 /mind/checkin/weekly-report] end subgraph 情绪预警 A7 --> B1[获取活跃预警 /mind/alert/active] B1 --> B2[获取打卡预警 /mind/alert/checkin-alerts] B2 --> B3[处理预警 /mind/alert/resolve] end subgraph 心理测评 A1 --> C1[提交筛查问卷 /mind/screening/submit] C1 --> C2[获取筛查历史 /mind/screening/history] C2 --> C3[获取最新结果 /mind/screening/latest] end subgraph 脑科学与神经递质 C3 --> D1[获取神经递质分析 /mind/neurotransmitters] D1 --> D2[获取肠脑洞察 /mind/gut-emotion-insight] D2 --> D3[获取EMI报告 /mind/emireport/latest] end subgraph 心理运势 D3 --> E1[获取心理运势 /mind/fortune] E1 --> E2[刷新运势 /mind/fortune/refresh] E2 --> E3[导出运势 /mind/fortune/export] end subgraph 传统心理镜像 E3 --> F1[获取心理镜像 /mind/traditional/mirror] F1 --> F2[获取家庭看板 /mind/traditional/family-dashboard] F2 --> F3[获取兼容性 /mind/traditional/compatibility] end subgraph EMI心理报告 F3 --> G1[获取EMI心理报告 /emireport/latest] end R1(("👤 用户")):::actor R2(("🧠 心理引擎")):::system A1 -.- R1 D1 -.- R2 ``` ## 端点明细 | 端点 | 控制器 | 说明 | |------|--------|------| | `/api/mind/checkin/create` | EmotionCheckinController | 创建情绪打卡 | | `/api/mind/checkin/list` | EmotionCheckinController | 情绪列表 | | `/api/mind/checkin/latest` | EmotionCheckinController | 最新情绪 | | `/api/mind/checkin/trend` | EmotionCheckinController | 情绪趋势 | | `/api/mind/checkin/stats` | EmotionCheckinController | 情绪统计 | | `/api/mind/checkin/weekly-report` | EmotionCheckinController | 周报 | | `/api/mind/alert/active` | EmotionAlertController | 活跃预警 | | `/api/mind/alert/checkin-alerts` | EmotionAlertController | 打卡预警 | | `/api/mind/alert/resolve` | EmotionAlertController | 处理预警 | | `/api/mind/neurotransmitters` | MindController | 神经递质 | | `/api/mind/gut-emotion-insight` | MindController | 肠脑洞察 | | `/api/mind/emireport/latest` | MindController | EMI报告 | | `/api/mind/fortune` | MindFortuneController | 心理运势 | | `/api/mind/fortune/refresh` | MindFortuneController | 刷新运势 | | `/api/mind/fortune/export` | MindFortuneController | 导出运势 | | `/api/mind/screening/submit` | ScreeningController | 提交筛查 | | `/api/mind/screening/history` | ScreeningController | 筛查历史 | | `/api/mind/screening/latest` | ScreeningController | 最新结果 | | `/api/mind/traditional/mirror` | TraditionalMirrorController | 心理镜像 | | `/api/mind/traditional/family-dashboard` | TraditionalMirrorController | 家庭看板 | | `/api/mind/traditional/compatibility` | TraditionalMirrorController | 兼容性 | | `/api/emireport/latest` | EmiReportController | EMI心理报告 |