文档
测试

获取购物车

GET
http://{{url}}/api/cart/get_cart

请求头

参数名
类型
描述
必填
token
string
示例:b1888dfd-3a3a-4c9a-a97c-e66ea05eaa21
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:ok
必填
time
string
示例:1686121162
必填
data
object
数据字典
必填
total
int
示例:1
必填
per_page
int
示例:15
必填
current_page
int
示例:1
必填
last_page
int
示例:1
必填
data
array
数据列表
必填
id
int
示例:4541
必填
user_id
int
示例:23922
必填
goods_id
int
示例:1
必填
spec_item_key
string
示例:3_5
必填
attr
object
数据字典
必填
name
string
示例:新飞双门式小冰箱冷藏冷冻家用宿舍办公室节能电冰箱双门冰箱
必填
thumb
string
示例:https://xinfei.hndaoben.net/addons/zjhj_mall/core/web/uploads/image/store_1/0339112a7a98bb4abe8e9de62973b95aa000ff86.jpg
必填
num
int
示例:2
必填
price
string
示例:0.01
必填
total_money
string
示例:0.02
必填
createtime
int
示例:1686120757
必填
updatetime
int
示例:1686120989
必填
spec_item_name
array
数据列表
必填
spec
string
示例:颜色
必填
spec_item
string
示例:红色
必填
sale_status
int
示例:0
必填

说明 / 示例

![image.png](1)