获取购物车列表
GET
/member/cart请求参数
Header 参数
Authorization
string
必需
示例值:
{{token}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
msg
string
提示语
result
array [object {13}]
数据集合
id
string
SPUID
name
string
商品名称
picture
string
图片
price
number
加入时价格
count
integer
数量
skuId
string
SKUID
attrsText
string
必需
属性文字,例如“颜色:瓷白色 尺寸:8寸”
selected
boolean
是否选中
nowPrice
number
当前的价格
stock
integer
库存
isCollect
boolean
是否收藏
discount
number
折扣信息
isEffective
boolean
是否为有效商品
示例
{
"msg": "string",
"result": [
{
"id": "string",
"name": "string",
"picture": "string",
"price": 0,
"count": 0,
"skuId": "string",
"attrsText": "string",
"selected": true,
"nowPrice": 0,
"stock": 0,
"isCollect": true,
"discount": 0,
"isEffective": true
}
]
}
最后修改时间: 2 年前