添加购物车
POST
http://{{url}}/api/cart/add_cart
请求头
参数名
类型
描述
必填
token
string
示例:b1888dfd-3a3a-4c9a-a97c-e66ea05eaa21
必填
请求参数
参数名
类型
描述
必填
goods_id
int
示例:1
必填
spec_item_key
string
示例:3_5
必填
num
int
示例:1
必填
响应参数
参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:加入购物车成功!
必填
time
string
示例:1686120757
必填
goods_id
string
示例:1
必填
spec_item_key
string
示例:3_5
必填
num
string
示例:1
必填
price
string
示例:0.01
必填
user_id
int
示例:23922
必填
name
string
示例:新飞双门式小冰箱冷藏冷冻家用宿舍办公室节能电冰箱双门冰箱
必填
thumb
string
示例:https://xinfei.hndaoben.net/addons/zjhj_mall/core/web/uploads/image/store_1/0339112a7a98bb4abe8e9de62973b95aa000ff86.jpg
必填
total_money
float
示例:0.01
必填
createtime
int
示例:1686120757
必填
updatetime
int
示例:1686120757
必填
id
string
示例:4541
必填