文档
测试

1.2商品详情

POST
/goods/detail

请求头

参数名
类型
描述
必填
content-type
string
application/json
必填
公共参数
公共参数
必填

请求参数

参数名
类型
描述
必填
id
integer
商品id
必填

响应参数

参数名
类型
描述
必填
success
boolean
是否成功
可选
code
integer
结果编码
可选
msg
string
返回消息
可选
data
object
返回数据
可选
goods
Goods
商品信息
可选
goodsPrice
BigDecimal
客单价
可选
id
int
商品ID
可选
goodsSn
string
商品编号
可选
name
string
商品名称
可选
categoryId
int
类目ID
可选
brandId
int
品牌ID
可选
gallery
array
主图列表
可选
brief
string
简介
可选
isOnSale
boolean
在售
可选
picUrl
string
主图url
可选
shareUrl
string
分享url
可选
isNew
boolean
新品
可选
isHot
boolean
热点
可选
unit
string
单位
可选
counterPrice
BigDecimal
专柜价
可选
retailPrice
BigDecimal
零售价
可选
detail
string
商品明细url
可选
specificationList
array
规格列表
可选
name
string
规格名称(规格,颜色,尺寸)
可选
valueList
array
数据列表
可选
id
int
规格ID
可选
goodsId
int
商品ID
可选
specification
string
规格名称
可选
value
string
规格值
可选
picUrl
string
图片url
可选
addTime
string
创建时间
可选
updateTime
string
更新时间
可选
deleted
boolean
删除标志
可选
attributeList
array
数据列表
可选
id
long
属性ID
可选
goodsId
Long
商品ID
可选
attribute
string
key
必填
value
string
value
可选
brand
Brand
品牌信息
可选
id
long
品牌ID
可选
name
string
名称
可选
desc
string
描述
可选
picUrl
string
图片url
可选
productList
array
货品列表
可选
id
long
货品ID
可选
goodsId
long
商品ID
可选
specifications
string
套餐
可选
price
BigDecimal
价格
可选
url
string
图片url
可选

说明 / 示例

{ "success": true, "code": 200, "msg": "", "data": { "specificationList": [ { "name": "规格", "valueList": [ { "id": 337, "goodsId": 11521092, "specification": "规格", "value": "标准", "picUrl": "", "addTime": "2021-03-25 11:45:31", "updateTime": "2021-03-25 11:45:31", "deleted": false } ] } ], "attributeList": [], "goods": { "goodsPrice": 14.00, "id": 11521092, "goodsSn": "253", "name": "DIY儿童英语早教卡", "categoryId": 1036086, "brandId": 0, "gallery": [ "https://img.fastmk.cn/9k029tdwavwreygsrlaa.jpg", "https://img.fastmk.cn/0gfd0srd9un5f4y2ovl5.jpg", "https://img.fastmk.cn/47hht8szmo9y0km2ctij.jpg", "https://img.fastmk.cn/psfhbpggzgt8hitkh7io.jpg", "https://img.fastmk.cn/mg8z34hsr1qhvucq5eei.jpg" ], "brief": "让宝宝爱上学英语", "isOnSale": true, "picUrl": "https://img.fastmk.cn/0wbq0nks4yllpjk847u7.jpg", "shareUrl": "", "isNew": true, "isHot": false, "unit": "件", "counterPrice": 22.00, "retailPrice": 10.00, "detail": "<p><img src=\"https://img.fastmk.cn/0ec9c4bb-1a50-423d-a582-c2b83885227f-s1.jpg?x-oss-process=style/autoh500\" /></p>\n<p><img src=\"https://img.fastmk.cn/a0700865-bd25-48b3-b729-6e72a62117d2-s2.jpg?x-oss-process=style/autoh500\" /></p>\n<p><img src=\"https://img.fastmk.cn/5df92f49-a4f6-45d6-ab0a-03574550c7bb-s3.jpg?x-oss-process=style/autoh500\" /></p>\n<p><img src=\"https://img.fastmk.cn/5e291bd3-7ba0-40f2-9bf3-05c05948a692-s4.jpg?x-oss-process=style/autoh500\" /></p>\n<p><img src=\"https://img.fastmk.cn/6b0801b2-52a4-45ac-ac3c-14e025dccdeb-s5.jpg?x-oss-process=style/autoh500\" /></p>\n<p><img src=\"https://img.fastmk.cn/d631cf19-05b5-4e10-86ab-03be23a40e87-s6.jpg?x-oss-process=style/autoh500\" /></p>\n<p><img src=\"https://img.fastmk.cn/58b69e1b-99f1-4776-adb9-c5280d1ea72a-s7.jpg?x-oss-process=style/autoh500\" /></p>\n<p><img src=\"https://img.fastmk.cn/cfbaa5e1-8a3e-42e0-9945-c3abb9e7c373-s8.jpg?x-oss-process=style/autoh500\" /></p>\n<p><img src=\"https://img.fastmk.cn/509e3afc-c6d1-460d-a073-73f7b94b544c-s9.jpg?x-oss-process=style/autoh500\" /></p>\n<p><img src=\"https://img.fastmk.cn/536e89f8-5e50-41e8-8b1b-11489afeb14d-s10.jpg?x-oss-process=style/autoh500\" /></p>\n<p><img src=\"https://img.fastmk.cn/996c126a-b4cb-4ba8-875a-5f844bcdee52-s11.jpg?x-oss-process=style/autoh500\" /></p>" }, "brand": {}, "productList": [ { "id": 338, "goodsId": 11521092, "specifications": "[\"标准\"]", "price": 10.00, "url": "https://img.fastmk.cn/6m6zrg5r0hjap49ewwqt.jpg" } ] } }