文档
测试

添加商品入购物车

POST
http://127.0.0.1:9501/api/cart/add

请求头

参数名
类型
描述
必填
Authorization
string
示例:268756c4ee257abb26702d732641367fc77a9ae6
必填

请求参数

参数名
类型
描述
必填
planId
int
示例:1
必填
recordId
int
示例:128605141598253056
必填
productId
int
示例:10
必填
qty
int
示例:1
必填

响应参数

参数名
类型
描述
必填
code
int
示例:100
必填
message
string
示例:success
必填
timestamp
string
示例:2020-06-09 11:12:18
必填
data
object
数据字典
必填
__raw_id
string
示例:1e86d61a30243af37333284b7d3b23f5
必填
id
string
商品id
必填
name
string
商品名
必填
qty
int
数量
必填
price
int
单价
必填
total
int
总金额
必填
planId
string
示例:1
必填
recordId
string
示例:128605141598253056
必填
number
string
期号
必填
selected
int
是否选中
必填