文档
测试

购物车添加商品

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

请求参数

参数名
类型
描述
必填
productId
Integer
商品ID
必填
count
Integer
数量
必填

响应参数

参数名
类型
描述
必填
status
Integer
状态码
必填
data
T
数据
必填

成功

{ "status": 200, "data": { "cartProductVOList": [ { "id": 125, "userId": 1, "productId": 10004, "quantity": 20, "productName": "方法是", "productSubtitle": "4", "productMainImage": "4", "productPrice": 4, "productStock": 10, "productStatus": 1, "productTotalPrice": 80, "productChecked": 0, "limitQuantity": "LIMIT_NUM_FAIL" }, { "id": 128, "userId": 1, "productId": 10000, "quantity": 20, "productName": "苹果", "productSubtitle": "1", "productMainImage": "1", "productPrice": 1, "productStock": 100, "productStatus": 1, "productTotalPrice": 20, "productChecked": 1, "limitQuantity": "LIMIT_NUM_SUCCESS" }, { "id": 131, "userId": 1, "productId": 10003, "quantity": 2, "productName": "搜索", "productSubtitle": "3", "productMainImage": "3", "productPrice": 3, "productStock": 100, "productStatus": 1, "productTotalPrice": 6, "productChecked": 1, "limitQuantity": "LIMIT_NUM_SUCCESS" } ], "allChecked": false, "cartTotalPrice": 26 } }