端口说明: 📱 小程序 | 🖥 管理后台 | 📋 规划师端 | ⚙️ 系统自动
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[📱 获取成长任务列表 /list]:::portMiniApp
A2 --> A3{📱 任务状态}:::portMiniApp
A3 -->|可领取| A4[📱 领取任务 /claim]:::portMiniApp
A3 -->|动态任务| A5[📱 接受动态任务 /accept-dynamic]:::portMiniApp
A4 --> A6[📱 执行成长任务]:::portMiniApp
A5 --> A6
end
R1(("👶 孩子")):::actor
A1 -.- R1
| 端点 | 说明 | 端口 |
|---|---|---|
/api/growth-task/list |
成长任务列表 | 📱小程序 |
/api/growth-task/claim |
领取任务 | 📱小程序 |
/api/growth-task/accept-dynamic |
接受动态任务 | 📱小程序 |