- 登录相关
- 首页
- 商品
- 购物车
- 优惠券
- 订单
- 售后
- 收货地址
- 收藏
- 点赞
- 评论
- 种草文章
- 上传
购物车列表
开发中
POST
/frontend/cart/list/
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
page
string
必需
示例值:
1
limit
string
必需
示例值:
10
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/frontend/cart/list/?page=1&limit=10'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
object
必需
count
integer
购物车总记录数
list
array [object {7}]
必需
示例
{
"code": 1,
"message": "ok",
"data": {
"count": 2,
"list": [
{
"id": 1,
"user_id": 1,
"goods_id": 1,
"count": 1,
"goods_info": {
"id": "1",
"pic_url": "https://assasda.png",
"name": "东鹏特饮1",
"price": 50000,
"level1_category_id": 1,
"level2_category_id": 2,
"level3_category_id": 3,
"brand": "东鹏2",
"stock": 100,
"sale": 10,
"tags": "饮料,功能饮料",
"detail_info": "详情富文本",
"created_at": "",
"updated_at": ""
},
"created_at": "2022-07-29 13:59:10",
"updated_at": ""
},
{
"id": 3,
"user_id": 1,
"goods_id": 2,
"count": 3,
"goods_info": {
"id": "2",
"pic_url": "https://assasda.png",
"name": "东鹏特饮2",
"price": 50000,
"level1_category_id": 1,
"level2_category_id": 2,
"level3_category_id": 4,
"brand": "东鹏2",
"stock": 100,
"sale": 0,
"tags": "饮料,功能饮料",
"detail_info": "详情富文本",
"created_at": "",
"updated_at": ""
},
"created_at": "",
"updated_at": ""
}
]
}
}
修改于 2022-12-26 08:15:43