GET /product/findProduct
请求:
|
字段 |
名称 |
类型 |
是否必须 |
|
id |
商品id |
int |
是 |
返回:
|
字段 |
名称 |
类型 |
是否必须 |
|
id |
商品id |
int |
是 |
|
created_at |
创建时间 |
int |
是 |
|
updated_at |
修改时间 |
int |
是 |
|
sort |
排序 |
int |
否 |
|
title |
商品名称 |
string |
是 |
|
category1_id |
中台一级分类id |
int |
是 |
|
category2_id |
中台二级分类id |
int |
是 |
|
category3_id |
中台三级分类id |
int |
是 |
|
video_url |
首图视频 |
string |
否 |
|
price |
供货价 |
int |
是 |
|
cost_price |
成本价 |
int |
是 |
|
activity_price |
营销加 |
int |
否 |
|
stock |
库存 |
int |
否 |
|
sales |
销售数量 |
int |
否 |
|
sn |
商品编号 |
string |
否 |
|
desc |
商品描述 |
string |
否 |
|
image_url |
商品主图 |
string |
是 |
|
unit |
商品单位 |
string |
是 |
|
barcode |
商品条码 |
string |
否 |
|
freight |
运费(分) |
int |
否 |
|
freight_type |
运费类型(0统一 1运费模板 2第三方运费(供应链商品) 3包邮) |
int |
是 |
|
detail_images |
商品详情(富文本) |
string |
否 |
|
attr |
属性 |
array |
否 |
|
weight |
重量 |
|
否 |
|
qualifications |
特殊资质 |
array |
否 |
|
gallery |
商品组图 |
array |
是 |
|
skus |
规格 |
array |
是 |
skus:
|
title |
规格属性名称 |
string |
是 |
|
cost_price |
成本价格(分) |
int |
是 |
|
origin_price |
|
int |
是 |
|
guide_price |
指导价(分) |
int |
是 |
|
activity_price |
营销价格(分) |
int |
否 |
|
stock |
库存 |
int |
是 |
|
options |
规格详情 |
array |
是 |
|
price |
供货价(分) |
int |
是 |
|
weight |
重量 |
string |
否 |
|
sn |
条码 |
string |
否 |
|
describe |
规格描述 |
string |
否 |
options:
|
spec_name |
规格名称 |
string |
是 |
|
spec_item_name |
规格名称 |
string |
是 |
attr:
|
name |
属性名称 |
string |
是 |
|
value |
属性值 |
string |
是 |
qualifications:
|
title |
资质名称 |
string |
是 |
|
src |
资质图片 |
string |
是 |
gallery:
|
type |
1图片2视频(目前只有图片) |
int |
是 |
|
src |
资源地址 |
string |
是 |
{
“code”: 0,
“data”: {
“reproduct”: {
“id”: 1030496,
“created_at”: 1644309371,
“updated_at”: 1644808397,
“title”: “招商分红测试”,
“origin_price”: 18802,
“guide_price”: 18804,
“price”: 18801,
“stock”: 1093,
“cost_price”: 18803,
“activity_price”: 0,
“sales”: 1,
“sn”: “aa”,
“single_option”: 0,
“desc”: “321321321”,
“image_url”: “https://test-1251768088.cosgz.myqcloud.com/images/3/2018/02/XCo19OYQfCCSFZ3afgGQ7bahhqUsqH.png”,
“video_url”: “”,
“unit”: “件”,
“barcode”: “31231”,
“freight”: 0,
“freight_type”: 3,
“detail_images”: “<p>3213213213</p>”,
“brand_id”: 0,
“supplier_id”: 35,
“gather_supply_id”: 0,
“category1_id”: 69484,
“category2_id”: 69485,
“category3_id”: 69486,
“freight_template_id”: 0,
“source”: 0,
“source_goods_id”: 0,
“child_title”: “”,
“skus”: [
{
“id”: 31599,
“created_at”: 1644309371,
“updated_at”: 1644808397,
“title”: “默认”,
“price”: 18801,
“cost_price”: 18803,
“origin_price”: 18802,
“guide_price”: 18804,
“activity_price”: 0,
“stock”: 1093,
“weight”: 0,
“is_display”: 0,
“original_sku_id”: 0,
“sn”: “aa”,
“image_url”: “”,
“supplier_id”: 35,
“product_id”: 1030496,
“options”: [
{
“spec_name”: “规格”,
“spec_item_name”: “默认”
}
],
“describe”: “<p>321312321</p>”
}
],
“gallery”: [
{
“type”: 1,
“src”: “https://test-1251768088.cosgz.myqcloud.com/images/3/2018/02/XCo19OYQfCCSFZ3afgGQ7bahhqUsqH.png”
},
{
“type”: 1,
“src”: “https://test-1251768088.cosgz.myqcloud.com/images/3/2018/02/XCo19OYQfCCSFZ3afgGQ7bahhqUsqH.png”
}
],
“qualifications”: [
{
“title”: “测试特殊资质”,
“src”: “https://supply-chain-yunzmall.oss-cn-beijing.aliyuncs.com/2022214/1644808166QQ截图20211007105506.png”
}
],
“attrs”: null,
“max_price”: 18801,
“min_price”: 18801,
“weight”: 0,
“sku_id”: 31599
}
},
“msg”: “操作成功”
}