vendor-butler-flow.md 1.5 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[申请管家 /apply]
        A2 --> A3[获取管家资料 /profile]
        A3 --> A4[更新资料 /update-profile]
        A4 --> A5[获取家庭成员 /members]
    end

    subgraph 商家入驻
        A1 --> B1[申请入驻 /vendor/apply]
        B1 --> B2[获取入驻状态 /vendor/status]
        B2 --> B3[获取商家信息 /vendor/info]
    end

    subgraph 商家管理
        B3 --> C1[商家商品列表]
        C1 --> C2[处理订单]
        C2 --> C3[发货管理]
    end

    R1(("👤 用户")):::actor
    R2(("🏪 商家")):::role

    A1 -.- R1
    B3 -.- R2

端点明细

端点 说明
/api/butler/apply 申请管家
/api/butler/profile 管家资料
/api/butler/update-profile 更新资料
/api/butler/members 家庭成员
/api/vendor/apply 申请入驻
/api/vendor/status 入驻状态
/api/vendor/info 商家信息