移除购物车所有被选中的商品 websocket测试 POST http://localhost:8080/portal/cart/delete_products.do 响应参数 参数名 类型 描述 必填 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" } ], "allChecked": false, "cartTotalPrice": 0 } } 失败的返回示例1 { "status": 100, "msg": "用户未登录" } 失败的返回示例2 { "status": 9, "msg": "没有选中任何商品" }
{ "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" } ], "allChecked": false, "cartTotalPrice": 0 } }