文档
测试

Y购物车选中选中或取消某个商品

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

接口描述

修改某条购物车信息的状态为选中

请求参数

参数名
类型
描述
必填
pid
Integer
商品id
必填

响应参数

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

成功的示例

{ "code": 200, "data": { "records": [ { "id": 142, "userId": 38, "productId": 10006, "quantity": 10, "checked": 1, "subtitle": "6", "mainImage": "6", "price": 6.00, "stock": 100 } ], "total": 1, "size": 5, "current": 1, "orders": [], "optimizeCountSql": true, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 1 } }

失败的示例

{ "code": 304, "msg": "购物车未更新" }