- 说明
- 首页模块
- 热门推荐
- 搜索模块
- 商品分类
- 商品详情
- 会员登录
- 会员中心-个人信息
- 会员中心-地址管理
- 会员中心-订单管理
- 购物车
- 支付
修改购物车单品
PUT
/member/cart/{skuId}
请求参数
Path 参数
skuId
string
SKU ID
Header 参数
Authorization
string
必需
示例值:
{{token}}
Body 参数application/json
selected
boolean
可选
count
integer
可选
示例
{
"selected": true,
"count": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/member/cart/' \
--header 'Authorization: {{token}}' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
msg
string
必需
result
object
必需
id
string
id
name
string
商品名称
picture
string
图片
price
number
加入时价格
count
integer
数量
skuId
string
SKUID
attrsText
string
必需
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
}
}
修改于 2023-04-04 04:23:50