Appearance
8.5 根据Id批量查询购物车
接口说明:
Method | URL | ContentType |
---|---|---|
GET | /api/v1/cart/list | application/json |
请求参数说明:
参数 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
cartIds | List<Integer> | 是 | [18,19] | 购物车Id列表 |
返回参数说明:
参数 | 类型说明 | 描述 |
---|---|---|
id | Integer | 购物车Id |
userId | Integer | 用户Id |
sku | String | 商品编码 |
quantity | Integer | 商品数量 |
updateTime | DateTime | 更新时间 |
请求示例
GET /api/v1/cart/list?cartIds=18,19
响应示例
json
{
"success": true,
"code": "000",
"message": "成功",
"data": [
{
"id": 18,
"userId": 72,
"sku": "WF1950535",
"quantity": 4,
"updateTime": "2025-08-12 11:11:28"
},
{
"id": 19,
"userId": 72,
"sku": "WF2193927",
"quantity": 2,
"updateTime": "2025-08-12 11:26:12"
}
]
}