文档
测试

查询在购物车里的产品数量

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

响应参数

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

成功的返回示例

{ "status": 200, "data": { "cartProductVos": [ { "id": 125, "userId": 21, "productId": null, "quantity": 3, "productSubtitle": "4", "productMainImage": "4", "productPrice": 4, "productStock": 60, "productStatus": 1, "productTotalPrice": 12, "productChecked": 1, "limitQuantity": "LIMIT_NUM_SUCCESS", "productName": "方法是" }, { "id": 128, "userId": 21, "productId": null, "quantity": 1, "productSubtitle": "1", "productMainImage": "1", "productPrice": 1, "productStock": 100, "productStatus": 1, "productTotalPrice": 1, "productChecked": 1, "limitQuantity": "LIMIT_NUM_SUCCESS", "productName": "苹果" }, { "id": 129, "userId": 21, "productId": null, "quantity": 3, "productSubtitle": "3", "productMainImage": "3", "productPrice": 3, "productStock": 100, "productStatus": 1, "productTotalPrice": 9, "productChecked": 1, "limitQuantity": "LIMIT_NUM_SUCCESS", "productName": "搜索" } ], "allChecked": true, "cartTotalPrice": 22 } }{ "status": 200, "data": { "cartProductVos": [ { "id": 125, "userId": 21, "productId": null, "quantity": 3, "productSubtitle": "4", "productMainImage": "4", "productPrice": 4, "productStock": 60, "productStatus": 1, "productTotalPrice": 12, "productChecked": 1, "limitQuantity": "LIMIT_NUM_SUCCESS", "productName": "方法是" }, { "id": 128, "userId": 21, "productId": null, "quantity": 1, "productSubtitle": "1", "productMainImage": "1", "productPrice": 1, "productStock": 100, "productStatus": 1, "productTotalPrice": 1, "productChecked": 1, "limitQuantity": "LIMIT_NUM_SUCCESS", "productName": "苹果" }, { "id": 129, "userId": 21, "productId": null, "quantity": 3, "productSubtitle": "3", "productMainImage": "3", "productPrice": 3, "productStock": 100, "productStatus": 1, "productTotalPrice": 9, "productChecked": 1, "limitQuantity": "LIMIT_NUM_SUCCESS", "productName": "搜索" } ], "allChecked": true, "cartTotalPrice": 22 } }

失败的返回示例

{ "status": 13, "msg": "用户未登录" } { "status": 2, "msg": "商品不存在" } { "status": 3, "msg": "参数不能为空" }