文档
测试

商品详情

POST
http://192.168.1.222/shop/api.goods/info

请求参数

参数名
类型
描述
必填
apitoken
string
示例:DCQKZ1a1a9310fb733cdd49c0808731b68c048UU64NDjj
必填
id
int
示例:171
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
data
object
数据字典
必填
list
object
数据字典
必填
title
string
商品名称 示例:跨床电脑桌笔记本台式机电脑桌太空舱床边桌升降桌懒人桌电竞桌椅
必填
goods
object
商品信息 数据字典
必填
goods_id
int
商品标识 示例:171
必填
cid
int
分类标识 示例:36
必填
brand_id
int
品牌标识 示例:5
必填
sku_model
int
规格模型 示例:4
必填
type_model
int
类型模型 示例:0
必填
goods_name
string
商品名称 示例:跨床电脑桌笔记本台式机电脑桌太空舱床边桌升降桌懒人桌电竞桌椅
必填
short_name
string
商品简称 示例:电脑桌电竞桌椅
必填
goods_sn
string
示例:002 商品货号
必填
bar_code
string
示例:商品条形码
必填
goods_number
int
示例:520 商品库存
必填
goods_weight
string
示例:100000.00 商品重量(g)
必填
is_spec
int
示例:0 是否多规格 示例:1
必填
market_price
string
示例:233.44 市场售价
必填
shop_price
string
示例:222.22 商城售价
必填
level_price_type
int
示例:0 会员价格优惠方式,0默认商城售价,1会员折扣售价,2指定折扣售价,3指定固定售价
必填
volume_price_type
int
示例:1 阶梯价格定义方式,1固定金额,2指定折扣
必填
m_goods_desc
string
移动端详细说明 示例:<img style="max-width: 100% !important;" class="lazy" src="//192.168.1.222/upload/image/2021/04/60766a2785c8f.jpg" lazy-load="true" /><img style="max-width: 100% !important;" class="lazy" src="//192.168.1.222/upload/image/2021/04/60766a6cce287.jpg" lazy-load="true" />
必填
description
string
示例:This is tese2. 简介
必填
goods_desc
string
示例: 详细说明
必填
goods_thumb
string
缩略图 示例:http://192.168.1.222/upload/gimg/2021/04/6076667c5cbb2_thumb.jpg
必填
goods_img
string
商品图片 示例:http://192.168.1.222/upload/gimg/2021/04/6076667c5cbb2.jpg
必填
limit_num
int
示例:0 单次商品限购数量
必填
is_best
int
示例:1 是否推荐
必填
is_hot
int
示例:1 是否热销
必填
is_new
int
示例:1 是否新品
必填
freight_template
int
示例:5 运费模板
必填
shippingfee_info
string
示例: 运费说明
必填
is_promote
int
示例:0 是否开启促销
必填
promote_price
string
示例:200.02 促销价
必填
use_bond
int
示例:1 能否使用优惠券1可用,0不可用
必填
tag_id
int
示例:1 商品标签ID
必填
video_url
string
小程序视频地址 示例:
必填
sale_count
int
示例:10 销售数量
必填
collect_count
int
示例:10 收藏数量
必填
is_cross_border
int
是否为跨境商品 示例:1
必填
tax_ratio
string
税收比率 百分比 示例:0.00
必填
country
string
国家 示例:中国
必填
send_address
string
发货地 示例:湖北武汉
必填
video_url_web
str
移动端视频播放地址
必填
country_img
str
国家小图片地址
必填
lstSKUArr
ary
规格 数据列表
必填
name
str
规格分类名称
必填
lstVal
ary
具体规格分类 列表
必填
id
int
规格标识
必填
val
str
规格名称
必填
skuimg
str
具有颜色 分类的属性 图片
必填
imgsList
array
商品轮播图 数据列表
必填
img_id
int
图片标识 示例:170
必填
goods_thumb
string
缩略图 示例:http://192.168.1.222/upload/gimg/2021/04/6076667c5cbb2_thumb.jpg
必填
goods_img
string
大图 示例:http://192.168.1.222/upload/gimg/2021/04/6076667c5cbb2.jpg
必填
sort_order
int
排序 示例:0
必填
isCollect
int
是否收藏 示例:0
必填
comment
array
评论 数据列表
必填
user_name
string
用户名称 示例:陆路
必填
headimgurl
string
用户头像 示例:http://192.168.1.222/upload/headimg/0/LlGn50sF7c06.jpg
必填
content
string
评论内容 示例:啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊啊
必填
create_time
string
评论时间 示例:2020-07-14 09:33
必填
favor
int
星级 示例:5
必填
thumbnail
art
评论图片 数组
必填
image
str
示例:http://192.168.1.222/upload/image/2020/07/5f0d0b0902708.gif
必填
cartInfo
object
购物车 数据字典
必填
num
int
购物车数量 示例:0
必填
total
string
价格 示例:0.00
必填
customs
1要跳到清关信息
可选
msg
string
示例:Success.
必填

说明 / 示例

``` { "code": 1, "data": { "list": { "title": "测试001", "goods": { "goods_id": 170, "cid": 34, "brand_id": 7, "sku_model": 2, "type_model": 0, "goods_name": "测试001", "short_name": "Test zero zero one", "goods_sn": "001", "bar_code": "", "goods_number": 1044, "goods_weight": "0.00", "is_spec": 1, "market_price": "0.00", "shop_price": "100.00", "level_price": "0.00" "level_price_type": 0, "volume_price_type": 1, "m_goods_desc": "<p><br /> atadjopg ua]- opadj gpoaf gbpadfj n<br /></p><br /><p><br /> <img style=\"max-width: 100% !important;\" class=\"lazy\" src=\"//192.168.1.222/upload/image/20210408/1617864838438.jpg\" lazy-load=\"true\" /> <br /></p>", "description": "this is test 001", "goods_desc": "", "goods_thumb": "http://192.168.1.222/upload/gimg/2021/04/60765922e215a_thumb.gif", "goods_img": "http://192.168.1.222/upload/gimg/2021/04/60765922e215a.gif", "lstSKUArr": [ { "name": "颜色", "lstVal": [ { "id": 2, "val": "红色", "issel": 1, "goods_thumb": "", "isdef": 1, "skuimg": "http://192.168.1.222/upload/gimg/2021/04/607cf25316080_thumb.JPG" }, { "id": 3, "val": "蓝色", "issel": 1, "goods_thumb": "", "skuimg": "http://192.168.1.222/upload/gimg/2021/04/60765922e215a.gif" } ], "is_show": 1, "new_name": "颜色" }, { "name": "尺寸", "lstVal": [ { "id": 5, "val": "M码", "issel": 1, "goods_thumb": "", "isdef": 1 }, { "id": 6, "val": "L码", "issel": 1, "goods_thumb": "" }, { "id": 18, "val": "S码", "issel": 1, "goods_thumb": "" } ], "is_show": 1, "new_name": "尺寸" } ], "limit_num": 100, "is_best": 1, "is_hot": 1, "is_new": 1, "freight_template": 0, "shippingfee_info": "", "is_promote": 0, "promote_price": "0.00", "use_bond": 1, "tag_id": 5, "video_url_web": "", "country_img": "http://192.168.1.222/upload/image/2021/04/60750b3c831f8.gif", "video_url": "", "sale_count": 110, "collect_count": 200, "is_cross_border": 1, "tax_ratio": "20.00", "country": "鸡棚", "send_address": "杰鹏鸡棚鸡棚" }, "imgsList": [ { "img_id": 165, "goods_thumb": "http://192.168.1.222/upload/gimg/2021/04/60765922e215a_thumb.gif", "goods_img": "http://192.168.1.222/upload/gimg/2021/04/60765922e215a.gif", "sort_order": 0 }, { "img_id": 162, "goods_thumb": "http://192.168.1.222/upload/gimg/2021/04/60765914f1fd4_thumb.png", "goods_img": "http://192.168.1.222/upload/gimg/2021/04/60765914f1fd4.png", "sort_order": 1 }, { "img_id": 163, "goods_thumb": "http://192.168.1.222/upload/gimg/2021/04/6076591a16a68_thumb.png", "goods_img": "http://192.168.1.222/upload/gimg/2021/04/6076591a16a68.png", "sort_order": 2 } ], "isCollect": 0, "comment": [ { "user_name": "陆路", "headimgurl": "http://192.168.1.222/upload/headimg/0/LlGn50sF7c06.jpg", "content": "阿婆感觉阿萨德化工i如果头发那个白色的快乐奶粉比赛分蛋糕苹果", "create_time": "2020-07-10 10:13", "favor": 5, "thumbnail": "http://192.168.1.222/upload/comment/20190724/5d3825363303f_thumb.jpg" }, { "user_name": "陆路", "headimgurl": "http://192.168.1.222/upload/headimg/0/LlGn50sF7c06.jpg", "content": "1243465698-90-qwrtbtr", "create_time": "2020-07-10 10:02", "favor": 5, "thumbnail": "http://192.168.1.222/upload/comment/20190724/5d382534060f0_thumb.jpg" }, { "user_name": "林瑞", "headimgurl": "http://192.168.1.222/upload/image/2021/04/60750b3c831f8.gif", "content": "很好很好很好很好很好很好很好很好很好很好", "create_time": "2019-07-25 11:03", "favor": 5, "thumbnail": "http://192.168.1.222/upload/comment/20190725/x8e1YVLtgvQb.jpg" } ], "cartInfo": { "num": 0, "total": "0.00" } }, "addr": { } }, "customs": 0, "msg": "Success." } ```