文档
测试

购物车列表

POST
http://localhost:8888/rlg/cart/list

接口描述

获取当前登录用户购物车列表数据

响应参数

参数名
类型
描述
必填
code
Integer
接口请求状态码
必填
message
String
接口请求返回信息
可选
data
String
接口请求返回数据
可选

成功示例

{ "code": 200, "data": { "records": [ { "id": 125, "userId": 45, "productId": 10004, "quantity": 20, "checked": 1, "mainImage": "4", "subtitle": "4", "price": 4, "stock": 10 }, { "id": 131, "userId": 45, "productId": 10003, "quantity": 5, "checked": 1, "mainImage": "3", "subtitle": "3", "price": 3, "stock": 100 }, { "id": 132, "userId": 45, "productId": 10003, "quantity": 5, "checked": 1, "mainImage": "3", "subtitle": "3", "price": 3, "stock": 100 }, { "id": 133, "userId": 45, "productId": 10003, "quantity": 5, "checked": 1, "mainImage": "3", "subtitle": "3", "price": 3, "stock": 100 }, { "id": 134, "userId": 45, "productId": 10003, "quantity": 5, "checked": 1, "mainImage": "3", "subtitle": "3", "price": 3, "stock": 100 }, { "id": 135, "userId": 45, "productId": 10003, "quantity": 5, "checked": 1, "mainImage": "3", "subtitle": "3", "price": 3, "stock": 100 }, { "id": 136, "userId": 45, "productId": 10003, "quantity": 5, "checked": 1, "mainImage": "3", "subtitle": "3", "price": 3, "stock": 100 }, { "id": 137, "userId": 45, "productId": 10003, "quantity": 5, "checked": 1, "mainImage": "3", "subtitle": "3", "price": 3, "stock": 100 }, { "id": 138, "userId": 45, "productId": 10003, "quantity": 5, "checked": 1, "mainImage": "3", "subtitle": "3", "price": 3, "stock": 100 } ], "total": 0, "size": 5, "current": 1, "orders": [], "optimizeCountSql": true, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 0 } }

失败示例

{ "code": 301, "msg": "购物车为空" }