修改购物车单品
PUT
/member/cart/{skuId}请求参数
Path 参数
skuId
string
SKU ID
Header 参数
Authorization
string
必需
示例值:
{{token}}
Body 参数application/json
selected
boolean
可选
选中状态 - 可选参数
count
integer
可选
商品数量 - 可选参数
示例
{
"selected": true,
"count": 0
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
msg
string
必需
result
object
必需
id
string
id
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 年前