文档
测试

移除购物车某个产品

GET
http://localhost:8090/rlg/cart/delete

接口描述

移除购物车某个商品

请求参数

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

响应参数

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

成功的返回示例

{ "code": 200, "data": { "records": [ { "id": 125, "userId": 38, "productId": 10004, "quantity": 20, "checked": 1, "subtitle": "4", "mainImage": "4", "price": 4.00, "stock": 10 } ], "total": 1, "size": 5, "current": 1, "orders": [], "optimizeCountSql": true, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 1 } }

失败的返回示例

{ "code": 303, "msg": "购物车移除商品失败" }