文档
测试

查询购物车里选中商品数量

GET
http://localhost:8888/rlg/cart/gwcspsl.do

接口描述

根据user_id查询购物车里选中商品数量

响应参数

参数名
类型
描述
必填
code
Integer
接口请求状态码
必填
message
String
接口请求返回信息
可选
data
返回数据
可选

成功示例

{ "code": 200, "data": { "records": [ { "id": 154, "userId": 33, "productId": 10005, "quantity": 10, "checked": 1, "subtitle": "5", "mainImage": "5", "price": 5.00, "stock": 50 }, { "id": 155, "userId": 33, "productId": 10003, "quantity": 8, "checked": 1, "subtitle": "3", "mainImage": "3", "price": 3.00, "stock": 100 }, { "id": 156, "userId": 33, "productId": 10004, "quantity": 10, "checked": 1, "subtitle": "4", "mainImage": "4", "price": 4.00, "stock": 10 }, { "id": 157, "userId": 33, "productId": 10002, "quantity": 13, "checked": 1, "subtitle": "2", "mainImage": "2", "price": 2.00, "stock": 90 }, { "id": 158, "userId": 33, "productId": 10006, "quantity": 10, "checked": 1, "subtitle": "6", "mainImage": "6", "price": 6.00, "stock": 100 } ], "total": 5, "size": 5, "current": 1, "orders": [], "optimizeCountSql": true, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 1 } }

失败示例

{ "code": 105, "msg": "用户未登录" }