文档
测试

商品(取消)选中、(取消)全选

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

请求参数

参数名
类型
描述
必填
productID
Integer
商品id
必填
type
Integer
选中类型(0或1)
必填

响应参数

参数名
类型
描述
必填
status
Integer
状态码
必填
data
T
数据
必填
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": 1, "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": 0, "limitQuantity": "SUCCESS" }, { "id": 134, "userId": 23, "productId": 10006, "quantity": 11, "productName": "好是", "productSubtitle": "6", "productMainImage": "6", "productPrice": 6, "productStatus": 1, "productStock": 100, "productTotalPrice": 66, "productChecked": 0, "limitQuantity": "SUCCESS" } ], "allChecked": false, "cartTotalPrice": 80 } }

失败的返回示例1

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

失败的返回示例2

{ "status": 7, "msg": "更新商品数量失败" }

失败的返回示例3

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