文档
测试

商品详情

GET
http://pc.dao333.com/applets/Goods/detail?id=1

请求头

参数名
类型
描述
必填
token
string
示例:obZ2XwTio7KRO6Hw7Kwk6eXzZHIw
必填

请求参数

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

响应参数

参数名
类型
描述
必填
status
int
示例:200
必填
msg
string
示例:获取成功
必填
data
object
数据字典
必填
goods_id
int
示例:1
必填
bus_id
int
示例:0
必填
typeid
int
示例:50
必填
freight_id
int
示例:1
必填
goods_sn
string
示例:85F48A05F40604
必填
goods_name
string
示例:爆款夏季天丝空调被冰丝夏凉被四件套(测试)
必填
goods_names
string
示例:爆款夏季天丝空调被冰丝夏凉被四件套
必填
goods_price
string
示例:45.00
必填
market_price
string
示例:45.00
必填
costs_price
string
示例:45.00
必填
goods_number
int
示例:89
必填
goods_unit
string
示例:套
必填
is_spec
int
示例:2
必填
is_state
int
示例:1
必填
use_point
int
示例:0
必填
goods_title
string
示例:
必填
goods_keyword
string
示例:
必填
goods_remark
string
示例:
必填
goods_content
string
示例:
必填
goods_logo
string
示例:http://www.api.com/uploads/images/2020-08-28/2020082868526645202.jpg
必填
goods_salse
int
示例:0
必填
goods_image
array
数据列表
必填
goods_weight
string
示例:1
必填
create_time
int
示例:1598595167
必填
sort
int
示例:0
必填
is_find
int
示例:2
必填
is_recom
int
示例:2
必填
is_like
int
示例:2
必填
is_new
int
示例:2
必填
start_time
object
示例:null
必填
end_time
object
示例:null
必填
discount
string
示例:0.00
必填
is_xian
int
示例:2
必填
first_ratio
string
示例:0.00
必填
two_ratio
string
示例:0.00
必填
goods_type
object
示例:null
必填
typelist
array
数据列表
必填
id
int
示例:50
必填
pid
int
示例:0
必填
name
string
示例:面膜类
必填
remark
string
示例:
必填
is_state
int
示例:1
必填
sort
int
示例:34
必填
logo
string
示例:
必填
is_hot
int
示例:1
必填
html
string
示例:
必填
level
int
示例:0
必填
goods_spec
object
数据字典
必填
4
object
数据字典
必填
id
int
示例:4
必填
name
string
示例:尺寸
必填
sort
int
示例:4
必填
is_state
int
示例:1
必填
create_time
int
示例:0
必填
list
object
数据字典
必填
161
object
数据字典
必填
id
int
示例:161
必填
typeid
int
示例:4
必填
value
string
示例:230*220
必填
sort
int
示例:30
必填
6
object
数据字典
必填
id
int
示例:6
必填
name
string
示例:颜色
必填
sort
int
示例:6
必填
is_state
int
示例:1
必填
create_time
int
示例:0
必填
list
object
数据字典
必填
104
object
数据字典
必填
id
int
示例:104
必填
typeid
int
示例:6
必填
value
string
示例:颜色1
必填
sort
int
示例:0
必填
105
object
数据字典
必填
id
int
示例:105
必填
typeid
int
示例:6
必填
value
string
示例:颜色2
必填
sort
int
示例:1
必填
collect
int
示例:0
必填
city
string
示例:广东-广州
必填
pid
int
示例:1743
必填

说明 / 示例

{ "status": 200, //返回状态 "msg": "获取成功", //返回信息 "data": { "goods_id": 1, //商品id "typeid": 50, //分类id "goods_name": "", //商品名称 "goods_names": "", //商品副名称 "goods_price": "45.00", //商城销售价 "market_price": "45.00", //市场价,原价 "goods_number": 89, //库存数量 "goods_unit": "套", //计量单位 "is_spec": 2, //1统一规格,2多规格 "is_state": 1, //1上架,2下架,3审核中 "goods_content": "", //商品详细描述 "goods_logo": //logo图 "goods_salse": 0, //销量 "goods_image": [], //商品多图片 "goods_weight": "1", //商品重量 "start_time": null, //开始时间 "end_time": null, //结束时间 "goods_type": 1, 1普通商品2砍价商品3拼团商品 "typelist": [ //所属分类列表 { "id": 50, "pid": 0, "name": "面膜类",//分类名称 "remark": "", "is_state": 1, "sort": 34, "logo": "", "is_hot": 1, "html": "", "level": 0 } ], "goods_spec": [ { //规格 "id": 4, //规格id "name": "尺寸", //规格名称 "sort": 4, //排序 "is_state": 1, //状态 "create_time": //添加时间 "list": [{ "id": 161, //属性id "typeid": 4, //所属规格id "value": "230*220", //规格名称 "sort": 30 }] }, ] "collect": 0, //是否收藏,0否1是 "city": "广东-广州", //城市 "pid": 1743 //分享时所带上级id } "is_certified": 0 //1认证0未认证 }