文档
测试

商品详情

GET
/api/goods/detail

请求参数

参数名
类型
描述
必填
id
id
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:ok
必填
data
object
数据字典
必填
id
int
示例:22
必填
category_id
int
示例:0
必填
name
string
标题
必填
price
string
价格
必填
old_price
string
原始价格
必填
sale_num
int
销量
必填
express_fee
string
运费
必填
stock
int
库存
必填
content
string
详情
必填
create_time
string
上架时间
必填
spec
array
规格
必填
id
int
id
必填
spec_value
string
规格描述
必填
goods_price
string
价格
必填
stock
int
库存
必填
img_url
string
封面
必填
code
int
示例:200
必填