文档
测试

购物车添加商品

GET
http://localhost:8889/rlg/cart/cart_add_goods

接口描述

购物车中增加商品

请求参数

参数名
类型
描述
必填
pid
Integer
商品id
必填
num
Integer
商品数量
必填

响应参数

参数名
类型
描述
必填
status
Integer
状态码
必填
msg
String
状态信息
可选
data
String
数据
可选

成功示例

{ "status": 200, "data": { "records": [ { "id": 136, "userId": 35, "productId": 10000, "quantity": 3, "checked": 1, "subtitle": "1", "mainImage": "1", "price": 1.00, "stock": 100 } ], "total": 1, "size": 5, "current": 1, "orders": [], "optimizeCountSql": true, "hitCount": false, "countId": null, "maxLimit": null, "searchCount": true, "pages": 1 } }