文档
测试

商品详情

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

接口描述

商品详情

请求参数

参数名
类型
描述
必填
id
int
示例:169
必填
app_type
int
示例:
可选

响应参数

参数名
类型
描述
必填
code
int
示例:1 状态码。0为失败
必填
data
object
数据字典
必填
title
string
示例:lianyu002 商品名称
必填
goods
object
数据字典
必填
goods_id
int
示例:169 PRI
必填
store_id
int
示例:0 0为平台商品,其它为门店商品
必填
cid
int
示例:37 分类
必填
brand_id
int
示例:7 品牌
必填
supplyer_id
int
示例:0 供应商
必填
sku_model
int
示例:2 规格模型
必填
type_model
int
示例:0 类型模型
必填
is_dividend
int
示例:1 是否参与分销
必填
dividend_num
int
示例:0 分销计算数量
必填
goods_name
string
示例:lianyu002 商品名称
必填
short_name
string
示例:test2 商品简称
必填
goods_sn
string
示例:002 商品货号
必填
bar_code
string
示例:商品条形码
必填
goods_number
int
示例:520 商品库存
必填
goods_weight
string
示例:100000.00 商品重量(g)
必填
is_spec
int
示例:0 是否多规格
必填
market_price
string
示例:233.44 市场售价
必填
shop_price
string
示例:222.22 商城售价
必填
min_price
string
示例:222.22 最小金额
必填
max_price
string
示例:222.22 最大金额
必填
level_price_type
int
示例:0 会员价格优惠方式,0默认商城售价,1会员折扣售价,2指定折扣售价,3指定固定售价
必填
role_price_type
int
示例:0 身份价格优惠方式,0默认商城售价,1指定折扣售价,2指定固定售价
必填
volume_price_type
int
示例:1 阶梯价格定义方式,1固定金额,2指定折扣
必填
keywords
string
示例:test 关键字
必填
description
string
示例:This is tese2. 简介
必填
m_goods_desc
string
示例:This is test 2.移动端详细说明
必填
goods_desc
string
示例: 详细说明
必填
goods_thumb
string
示例:/upload/gimg/2020/11/5fbca1f4d1107_thumb.jpg 小图
必填
goods_img
string
示例:/upload/gimg/2020/11/5fbca1f4d1107.jpg 原图
必填
sale_num
int
示例:0 销量
必填
collect_num
int
示例:0 收藏量
必填
virtual_sale
int
示例:10 虚拟销量
必填
virtual_collect
int
示例:10 虚拟收藏
必填
limit_num
int
示例:0 单次商品限购数量
必填
is_delete
int
示例:0 是否删除
必填
is_best
int
示例:1 是否推荐
必填
is_hot
int
示例:1 是否热销
必填
is_new
int
示例:1 是否新品
必填
is_alone_sale
int
示例:1 1表示能作为普通商品销售,否则只能作为配件或赠品销售。
必填
isputaway
int
示例:1 上架时间:0-下架,1-上架,2-自动上下架
必填
added_time
int
示例:0 自动上架时间
必填
shelf_time
int
示例:0 自动下架时间
必填
add_time
int
示例:0 添加时间
必填
update_time
int
示例:0 修改时间
必填
freight_template
int
示例:5 运费模板
必填
shippingfee_info
string
示例: 运费说明
必填
is_promote
int
示例:0 是否开启促销
必填
promote_price
string
示例:200.02 促销价
必填
use_bond
int
示例:1 能否使用优惠券1可用,0不可用
必填
promote_start_date
int
示例:0 促销开始时间
必填
promote_end_date
int
示例:0 促销结束时间
必填
limit_user_level
string
示例: 限制会员等级购买
必填
limit_user_role
string
示例: 限制会员身份购买
必填
give_integral
int
示例:0 赠送积分,-1不赠送,0赠送1:1,大于0赠送指定积分
必填
use_integral
int
示例:200 购买该商品时可使用的积分抵扣的金额,积分组合购买时使用
必填
sort_order
int
示例:32766 排序
必填
tag_id
int
示例:1 商品标签ID
必填
lstSKUArr
array
数据列表
必填
sub_goods
array
数据列表
必填
skuCstom
array
数据列表
必填
is_on_sale
int
示例:1
必填
sale_price
string
示例:222.22 售价
必填
exp_min_price
array
数据列表
必填
exp_max_price
array
数据列表
必填
exp_price
array
数据列表
必填
sale_count
int
示例:10 销售数量
必填
collect_count
int
示例:10 收藏数量
必填
imgsList
array
数据列表
必填
img_id
int
示例:155 图片ID
必填
store_id
int
示例:0 门店ID
必填
goods_id
int
示例:169 商品ID
必填
sku_val
string
示例: skuID值
必填
goods_thumb
string
示例:/upload/gimg/2020/11/5fbca1f4d1107_thumb.jpg 小图
必填
goods_img
string
示例:/upload/gimg/2020/11/5fbca1f4d1107.jpg 原图
必填
sort_order
int
示例:0 排序
必填
admin_id
int
示例:10006 管理员ID
必填
supplyer_id
int
示例:0 供应商ID
必填
skuImgs
array
数据列表
必填
isCollect
int
示例:0
必填
cartInfo
object
数据字典
必填
num
int
示例:0 购物车数量
必填
total
string
示例:0.00 购物车价格
必填
is_sc
tinyint(1)
1|0 是否收藏
必填
msg
str
prompt message
必填

说明 / 示例

``` { "code": 1, "list": { "title": "lianyu002", "goods": { "goods_id": 169, "store_id": 0, "cid": 37, "brand_id": 7, "supplyer_id": 0, "sku_model": 2, "type_model": 0, "is_dividend": 1, "dividend_num": 0, "goods_name": "lianyu002", "short_name": "test2", "goods_sn": "002", "bar_code": "", "goods_number": 520, "goods_weight": "100000.00", "is_spec": 0, "market_price": "233.44", "shop_price": "222.22", "min_price": "222.22", "max_price": "222.22", "level_price_type": 0, "role_price_type": 0, "volume_price_type": 1, "keywords": "test", "description": "This is tese2.", "m_goods_desc": "This is test 2.", "goods_desc": "", "goods_thumb": "/upload/gimg/2020/11/5fbca1f4d1107_thumb.jpg", "goods_img": "/upload/gimg/2020/11/5fbca1f4d1107.jpg", "sale_num": 0, "collect_num": 0, "virtual_sale": 10, "virtual_collect": 10, "limit_num": 0, "is_delete": 0, "is_best": 1, "is_hot": 1, "is_new": 1, "is_alone_sale": 1, "isputaway": 1, "added_time": 0, "shelf_time": 0, "add_time": 0, "update_time": 0, "freight_template": 5, "shippingfee_info": "", "is_promote": 0, "promote_price": "200.02", "use_bond": 1, "promote_start_date": 0, "promote_end_date": 0, "limit_user_level": "", "limit_user_role": "", "give_integral": 0, "use_integral": 200, "sort_order": 32766, "tag_id": 1, "lstSKUArr": [], "sub_goods": [], "skuCstom": [], "is_on_sale": 1, "sale_price": "222.22", "exp_min_price": [ "222", "22" ], "exp_max_price": [ "222", "22" ], "exp_price": [ "222", "22" ], "sale_count": 10, "collect_count": 10 }, "imgsList": [ { "img_id": 155, "store_id": 0, "goods_id": 169, "sku_val": "", "goods_thumb": "/upload/gimg/2020/11/5fbca1f4d1107_thumb.jpg", "goods_img": "/upload/gimg/2020/11/5fbca1f4d1107.jpg", "sort_order": 0, "admin_id": 10006, "supplyer_id": 0 }, { "img_id": 156, "store_id": 0, "goods_id": 169, "sku_val": "", "goods_thumb": "/upload/gimg/2020/11/5fbca1fcc38c0_thumb.jpg", "goods_img": "/upload/gimg/2020/11/5fbca1fcc38c0.jpg", "sort_order": 1, "admin_id": 10006, "supplyer_id": 0 }, { "img_id": 157, "store_id": 0, "goods_id": 169, "sku_val": "", "goods_thumb": "/upload/gimg/2020/11/5fbca2039f4e4_thumb.jpg", "goods_img": "/upload/gimg/2020/11/5fbca2039f4e4.jpg", "sort_order": 2, "admin_id": 10006, "supplyer_id": 0 }, { "img_id": 158, "store_id": 0, "goods_id": 169, "sku_val": "", "goods_thumb": "/upload/gimg/2020/11/5fbca20aa1355_thumb.jpg", "goods_img": "/upload/gimg/2020/11/5fbca20aa1355.jpg", "sort_order": 3, "admin_id": 10006, "supplyer_id": 0 }, { "img_id": 159, "store_id": 0, "goods_id": 169, "sku_val": "", "goods_thumb": "/upload/gimg/2020/11/5fbca215803a9_thumb.jpg", "goods_img": "/upload/gimg/2020/11/5fbca215803a9.jpg", "sort_order": 4, "admin_id": 10006, "supplyer_id": 0 }, { "img_id": 160, "store_id": 0, "goods_id": 169, "sku_val": "", "goods_thumb": "/upload/gimg/2020/11/5fbca221cffc3_thumb.jpg", "goods_img": "/upload/gimg/2020/11/5fbca221cffc3.jpg", "sort_order": 5, "admin_id": 10006, "supplyer_id": 0 } ], "skuImgs": [], "isCollect": 0, "cartInfo": { "num": 0, "total": "0.00" } } } ```