文档
测试

查询某个用户的全部购物车项

GET
http://localhost:8080/api/cart/cart/list/{member_id}

请求参数

参数名
类型
描述
必填
member_id
int
用户id
必填

说明 / 示例

返回数据: ~~~ { "msg": "success", "code": 0, "data": [ { "id": 2, "productId": 2, "groupId": 1, "memberId": 1, "price": 13.00, "count": 2, "name": "小米手机", "image": "https://gulimall-ads.oss-cn-shanghai.aliyuncs.com/2023-07-08/1688782059022_haibao1.png" }, { "id": 3, "productId": 3, "groupId": 1, "memberId": 1, "price": 111.00, "count": 1, "name": "xiaomi2", "image": "https://gulimall-ads.oss-cn-shanghai.aliyuncs.com/2023-07-08/1688782147040_haibao1.png" }, { "id": 5, "productId": 1, "groupId": 1, "memberId": 1, "price": 3400.00, "count": 1, "name": "xiaomi2", "image": "https://gulimall-ads.oss-cn-shanghai.aliyuncs.com/2023-07-08/1688782147040_haibao1.png" }, { "id": 6, "productId": 1, "groupId": 1, "memberId": 1, "price": 3400.00, "count": 1, "name": "xiaomi2", "image": "https://gulimall-ads.oss-cn-shanghai.aliyuncs.com/2023-07-08/1688782147040_haibao1.png" } ] } ~~~