文档
测试

查看购物车

GET
/api/shopcart/getlist?limit=100&page=1

接口描述

分页查询用户购物车商品

请求头

参数名
类型
描述
必填
Cookie
String
必填

请求参数

参数名
类型
描述
必填
limit
int
每页显示条数
必填
page
int
当前页码
必填
_rnd
1629114203929
可选

响应参数

参数名
类型
描述
必填
page
int
当前页码
必填
pageSize
int
每页显示条数
必填
records
int
总记录数
必填
total
int
总页数
必填
size
int
当前页有多少条数据
必填
rows
array
数据列表
必填
createtime
string
创建时间。示例:2021-09-08T09:20:40.000+00:00
可选
prdid
int
商品id。示例:346
可选
quantity
int
数量。示例:1
可选
catname
string
分类名称。示例:美妆个护
可选
sku_info
string
关联的sku(关联prdSkuId)。示例:45
可选
ship_type
int
0:无需运送, 1:快递,2:自提, 3:快递+自提。示例:1
可选
rid
int
购物车id。示例:1812
可选
icons
string
商品主图片。示例:https://fdl-oss.oss-cn-hangzhou.aliyuncs.com/tmp/mainimage/2021/09/06/mainimage_2021-09-06_02-04-50_38172.jpg
可选
uid
string
用户uid。示例:302140
可选
catid
int
商品分类id。示例:1003
可选
productSkuList
array
数据字典,有配置sku_info的才返回
可选
prdSkuId
int
商品skuID示例:45
可选
skuCode
string
商品sku编号。示例:SK0000258615635
可选
prdNo
string
商品编号。示例:210101000300016
可选
cost
BigDecimal
成本价(元)。示例:5
可选
priceMoney
BigDecimal
商品单价(元)。示例:10
可选
markingPrice
BigDecimal
商品划线价(元)。:15
可选
amtMoney
BigDecimal
订单金额(元)。示例:10
可选
skuImg
string
sku素材图片。示例:https://fdl-oss.oss-cn-hangzhou.aliyuncs.com/tmp/skuImg/2021/09/06/skuImg_2021-09-06_04-28-40_80007.png
可选
stock
int
库存。示例:100
可选
status
int
sku状态。:-上架,0-未上架。:1
可选
prdSpeId
string
sku对应的属性。示例:4;8
可选
productSpecList
array
商品规格信息
可选
prdSpeId
int
商品规格ID。示例:4
可选
propKeyCode
string
属性项编码。示例:PK0000903136850
可选
propKeyName
string
属性项名称。:尺码
可选
propValueCode
string
属性值编码。示例:PV0000928374595
可选
propValueName
string
属性值名称。示例:M
可选
prdname
string
商品名称。示例:三只小蜜蜂
可选
prdno
string
商品编号。示例:210101000300016
可选
brand
string
品牌。示例:番多拉
可选
status
int
商品状态。0,未上架 1, 已上架。示例:1
可选
amt_money
BigDecimal
订单金额(元)。没有配置sku旧商品会返回。
可选
price_money
BigDecimal
商品单价(元)。没有配置sku旧商品会返回。
可选
specification
String
规格(旧)
可选
hasNextPage
boolean
是否还有下一页,false--没有下一页,true--有下一页,示例:false
必填

说明 / 示例

返回参数示例: ``` { "page": 1, "pageSize": 100, "records": 4, "total": 1, "size": 4, "rows": [ { "createtime": "2021-09-08T09:00:03.000+00:00", "prdid": 244, "price_point": 0, "amt_point": 0, "quantity": 1, "catname": "美妆个护", "price_money": 99, "ship_type": 1, "rid": 1809, "icons": "https://fdl-oss.oss-cn-hangzhou.aliyuncs.com/tmp/products/2021/06/29/products_2021-06-29_03-27-12_91036.png", "uid": "302140", "catid": 1003, "amt_money": 99, "prdname": "LASUS莱秀思小分子玻尿酸肌底透润面膜", "prdno": "210100100100003", "brand": "LASUS莱秀思", "status": 1 }, { "createtime": "2021-09-08T09:08:00.000+00:00", "prdid": 346, "quantity": 2, "catname": "美妆个护", "sku_info": "29", "ship_type": 1, "rid": 1811, "icons": "https://fdl-oss.oss-cn-hangzhou.aliyuncs.com/tmp/mainimage/2021/09/06/mainimage_2021-09-06_02-04-50_38172.jpg", "uid": "302140", "catid": 1003, "productSkuList": { "prdSkuId": 29, "skuCode": "SK0001278560335", "prdNo": "210101000300016", "cost": 1, "priceMoney": 5, "markingPrice": 11, "amtMoney": 10, "skuImg": "https://fdl-oss.oss-cn-hangzhou.aliyuncs.com/tmp/skuImg/2021/09/06/skuImg_2021-09-06_02-04-46_69466.jpg", "stock": 100, "status": 1, "prdSpeId": "5;7", "productSpecList": [ { "prdSpeId": 5, "propKeyCode": "PK0000903136850", "propKeyName": "尺码", "propValueCode": "PV0000650680231", "propValueName": "L" }, { "prdSpeId": 7, "propKeyCode": "PK0001448298758", "propKeyName": "颜色", "propValueCode": "PV0000703114234", "propValueName": "红" } ] }, "prdname": "三只小蜜蜂", "prdno": "210101000300016", "brand": "番多拉", "status": 1 } ], "hasNextPage": false } ```