文档
测试

更新购物车某个产品数量

POST
http://localhost:8080/portal/cart/update.do

请求参数

参数名
类型
描述
必填
productID
Integer
商品id
必填
count
Integer
数量
必填
type
Integer
添加类型
必填

响应参数

参数名
类型
描述
必填
status
Integer
状态码
必填
data
T
数据
必填
username
String
登录成功的管理员用户名
必填
msg
String
状态信息
必填

成功的返回示例

{ "status": 200, "data": { "cartProductVOList": [ { "id": 125, "userId": 23, "productId": 10004, "quantity": 20, "productName": "方法是", "productSubtitle": "4", "productMainImage": "4", "productPrice": 4, "productStatus": 1, "productStock": 100, "productTotalPrice": 80, "productChecked": 0, "limitQuantity": "SUCCESS" }, { "id": 129, "userId": 23, "productId": 10005, "quantity": 4, "productName": "版本", "productSubtitle": "5", "productMainImage": "5", "productPrice": 5, "productStatus": 1, "productStock": 50, "productTotalPrice": 20, "productChecked": 0, "limitQuantity": "SUCCESS" }, { "id": 130, "userId": 23, "productId": 10000, "quantity": 2, "productName": "苹果", "productSubtitle": "1", "productMainImage": "1", "productPrice": 1, "productStatus": 1, "productStock": 100, "productTotalPrice": 2, "productChecked": 0, "limitQuantity": "SUCCESS" }, { "id": 133, "userId": 23, "productId": 10002, "quantity": 50, "productName": "订单是", "productSubtitle": "2", "productMainImage": "2", "productPrice": 2, "productStatus": 1, "productStock": 90, "productTotalPrice": 100, "productChecked": 1, "limitQuantity": "SUCCESS" }, { "id": 134, "userId": 23, "productId": 10006, "quantity": 11, "productName": "好是", "productSubtitle": "6", "productMainImage": "6", "productPrice": 6, "productStatus": 1, "productStock": 100, "productTotalPrice": 66, "productChecked": 1, "limitQuantity": "SUCCESS" } ], "allChecked": false, "cartTotalPrice": 166 } }

失败的返回示例1

{ "status": 100, "msg": "用户未登录" }

失败的返回示例2

{ "status": 10, "msg": "添加类型参数错误" }

失败的返回示例3

{ "status": 4, "msg": "商品不存在" }

失败的返回示例4

{ "status": 3, "msg": "非法参数" }