- 说明
- 首页模块
- 热门推荐
- 搜索模块
- 商品分类
- 商品详情
- 会员登录
- 会员中心-个人信息
- 会员中心-地址管理
- 会员中心-订单管理
- 购物车
- 支付
加入购物车
POST
/member/cart
可以使用
请求参数
Header 参数
Authorization
string
必需
示例值:
{{token}}
Body 参数application/json
skuId
string
SKUID
count
integer
数量
示例
{
"skuId": "string",
"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 POST '/member/cart' \
--header 'Authorization: {{token}}' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
msg
string
必需
result
object
必需
skuId
string
SKUID
name
string
商品名称
attrsText
string
必需
picture
string
商品图片
price
string
加入时价格
nowPrice
string
当前的价格
selected
boolean
是否选中
stock
integer
库存
count
integer
数量
discount
number | null
折扣信息
isCollect
boolean
是否收藏
isEffective
boolean
是否为有效商品
id
string
SPUID
示例
{
"msg": "string",
"result": {
"skuId": "string",
"name": "string",
"attrsText": "string",
"picture": "string",
"price": "string",
"nowPrice": "string",
"selected": true,
"stock": 0,
"count": 0,
"discount": 0,
"isCollect": true,
"isEffective": true,
"id": "string"
}
}
修改于 2023-03-30 09:41:06