growth-task-flow.md 1.0 KB

用户使用流程图 — 成长任务

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[获取成长任务列表 /list]
        A2 --> A3{任务状态}
        A3 -->|可领取| A4[领取任务 /claim]
        A3 -->|动态任务| A5[接受动态任务 /accept-dynamic]
        A4 --> A6[执行成长任务]
        A5 --> A6
    end

    R1(("👶 孩子")):::actor

    A1 -.- R1

端点明细

端点 说明
/api/growth-task/list 成长任务列表
/api/growth-task/claim 领取任务
/api/growth-task/accept-dynamic 接受动态任务