文档
测试

修改购物车条目

POST
/cart/updateCartProduct

接口描述

用户选择需要商品,修改购物车的数量和存量(后台)

请求头

参数名
类型
描述
必填
token
String
必填

请求参数

参数名
类型
描述
必填
quantity
Integer
选择的商品数量
必填
selected
Boolean
选择的商品
必填
Long
goodsId
商品编号
必填

响应参数

参数名
类型
描述
必填
code
int
必填
msg
String
必填
data
必填

说明 / 示例

``` 用户修改后的数据情况 { "code": 1000, "msg": "操作成功", "data": { "cartProductDtoList": [ { "quantity": 2, "goodsId": 216465, "smallImgPath": null, "currentPrice": 2000, "goodsName": "抱枕", "publishStatus": 1, "reserve": 5, "productTotalPrice": 4000, "productSelected": true }, { "quantity": 1, "goodsId": 32132, "smallImgPath": null, "currentPrice": 4000, "goodsName": "智能机器人", "publishStatus": 1, "reserve": 6, "productTotalPrice": 4000, "productSelected": false } ], "selectedAll": false, "cartTotalPrice": 4000, "cartTotalQuantity": 3 } } ``` |goodsCartId|quantity|goodsId|smallImgPath|currentPrice|goodsName|publishStatus|reserve|productTotalPrice|productSelected|selectedAll|cartTotalPrice|cartTotalQuantity| |-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-| |购物车表主键|商品数量|商品Id|商品小图路径|商品单价|商品名称|上架状态:0->下架;1->上架|页面显示库存|商品总价|是否有选中(后面功能会有用到)|全选功能(后面功能会用到)|购物车商品总价|所有商品总数量|