商品列表
<h5>简要描述</h5>
<ul>
<li>无</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>{{host}}/goods/list</code> </li>
</ul>
<h5>请求方式</h5>
<ul>
<li>get</li>
</ul>
<h5>请求Query参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">示例值</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">猫系列</td>
<td>是</td>
<td>string</td>
<td>商品搜索名称</td>
</tr>
</tbody>
</table>
<h5>成功返回示例</h5>
<pre><code>{
"code": 200,
"msg": "操作成功",
"time": 1716969422,
"data": [
{
"id": 2,
"merchant_id": 1,
"goods_id": 35720,
"add_time": 1716886140,
"add_ip": "127.0.0.1",
"sort": 1,
"goods": {
"goods_id": 35720,
"name": "宠妙趣 猫系列 鸡肉丝罐头85克",
"category_id": 120,
"vip_price": "144.00",
"cover_img": "https:\/\/img.zhenxinhuixuan.com\/weiwait\/cropper\/tydyw74bE2gBaC0MhoCUdjZdXEAppgI2kMK1td0B.jpg",
"rotation": [
"https:\/\/img.zhenxinhuixuan.com\/weiwait\/cropper\/uvt43HROstvgkYL9u6t8qCY2ZMFcxzKtD6n6ebec.jpg",
"https:\/\/img.zhenxinhuixuan.com\/weiwait\/cropper\/g8AXKbPixToeUZYjkhtrSWB9Lh4II9p3gyz4DfVk.jpg",
"https:\/\/img.zhenxinhuixuan.com\/weiwait\/cropper\/WJVVhT9jPrAiTeMiaourkw01dXaZkfzZ7QLAPf7H.jpg",
"https:\/\/img.zhenxinhuixuan.com\/weiwait\/cropper\/4DTjZs92EgF9CNVTOgzhjttB6K2v1eJfOH99fxxb.jpg"
],
"goods_details": [
{
"type": "pic",
"content": "https:\/\/img.zhenxinhuixuan.com\/ueditor\/php\/image\/20230420\/1681984241832521\/25940434295ccc8d0961cce2ff7266cd.jpg"
},
{
"type": "pic",
"content": "https:\/\/img.zhenxinhuixuan.com\/ueditor\/php\/image\/20230420\/1681984245349292\/28b334898b1ed39d4d6cfea3adac2f70.jpg"
},
{
"type": "pic",
"content": "https:\/\/img.zhenxinhuixuan.com\/ueditor\/php\/image\/20230420\/1681984245677399\/2077e0b8b407fbc29fc2bbc5a0f211de.jpg"
},
{
"type": "pic",
"content": "https:\/\/img.zhenxinhuixuan.com\/ueditor\/php\/image\/20230420\/1681984247351788\/f681b3350dcb367eb6d0adf3fff69453.jpg"
},
{
"type": "pic",
"content": "https:\/\/img.zhenxinhuixuan.com\/ueditor\/php\/image\/20230420\/1681984248617707\/dd99899d69b65bfb409f5b1e8849e979.jpg"
},
{
"type": "pic",
"content": "https:\/\/img.zhenxinhuixuan.com\/ueditor\/php\/image\/20230420\/1681984249031113\/27f601cd102070693c9e8d2f2359b3e7.jpg"
},
{
"type": "pic",
"content": "https:\/\/img.zhenxinhuixuan.com\/ueditor\/php\/image\/20230420\/1681984250947963\/4391774e1309de05b09dd58aba141544.jpg"
},
{
"type": "pic",
"content": "https:\/\/img.zhenxinhuixuan.com\/ueditor\/php\/image\/20230420\/1681984250802730\/c4492c6a83ca9d4e2b2dc6a83622d214.jpg"
}
],
"status": 1,
"sku": [
{
"sku_id": 91907,
"goods_id": 35720,
"name": "[规格:85g*12罐] ",
"vip_price": "259.00",
"buy_start_qty": 1,
"need_verify_identity": 0
},
{
"sku_id": 91908,
"goods_id": 35720,
"name": "[规格:85g*24罐] ",
"vip_price": "484.00",
"buy_start_qty": 1,
"need_verify_identity": 0
},
{
"sku_id": 91909,
"goods_id": 35720,
"name": "[规格:85g*6罐] ",
"vip_price": "144.00",
"buy_start_qty": 1,
"need_verify_identity": 0
}
]
}
},
{
"id": 1,
"merchant_id": 1,
"goods_id": 35717,
"add_time": 1716886140,
"add_ip": "127.0.0.1",
"sort": 1,
"goods": null
}
]
}
</code></pre>
<h5>成功返回示例的参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">time</td>
<td style="text-align: left;">string</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">array</td>
<td>无</td>
</tr>
<tr>
<td style="text-align: left;">id</td>
<td style="text-align: left;">string</td>
<td>选品id</td>
</tr>
<tr>
<td style="text-align: left;">merchant_id</td>
<td style="text-align: left;">string</td>
<td>商户id</td>
</tr>
<tr>
<td style="text-align: left;">goods_id</td>
<td style="text-align: left;">string</td>
<td>商品id</td>
</tr>
<tr>
<td style="text-align: left;">add_time</td>
<td style="text-align: left;">string</td>
<td>加入选品时间</td>
</tr>
<tr>
<td style="text-align: left;">add_ip</td>
<td style="text-align: left;">string</td>
<td>加入选品ip</td>
</tr>
<tr>
<td style="text-align: left;">sort</td>
<td style="text-align: left;">string</td>
<td>排序</td>
</tr>
<tr>
<td style="text-align: left;">goods</td>
<td style="text-align: left;">object</td>
<td>商品列表</td>
</tr>
<tr>
<td style="text-align: left;">goods.goods_id</td>
<td style="text-align: left;">string</td>
<td>商品id</td>
</tr>
<tr>
<td style="text-align: left;">goods.name</td>
<td style="text-align: left;">string</td>
<td>商品名称</td>
</tr>
<tr>
<td style="text-align: left;">goods.category_id</td>
<td style="text-align: left;">string</td>
<td>商品分类id</td>
</tr>
<tr>
<td style="text-align: left;">goods.vip_price</td>
<td style="text-align: left;">string</td>
<td>商品售价</td>
</tr>
<tr>
<td style="text-align: left;">goods.cover_img</td>
<td style="text-align: left;">string</td>
<td>商品封面图</td>
</tr>
<tr>
<td style="text-align: left;">goods.rotation</td>
<td style="text-align: left;">array</td>
<td>商品组图</td>
</tr>
<tr>
<td style="text-align: left;">goods.rotation</td>
<td style="text-align: left;">array</td>
<td>商品组图</td>
</tr>
<tr>
<td style="text-align: left;">goods.goods_details</td>
<td style="text-align: left;">array</td>
<td>商品详情数组</td>
</tr>
<tr>
<td style="text-align: left;">goods.goods_details.type</td>
<td style="text-align: left;">string</td>
<td>商品详情类型 pic = 图片 text = 文本</td>
</tr>
<tr>
<td style="text-align: left;">goods.goods_details.content</td>
<td style="text-align: left;">string</td>
<td>商品详情内容</td>
</tr>
<tr>
<td style="text-align: left;">goods.status</td>
<td style="text-align: left;">string</td>
<td>商品状态 1 = 上架中 -1 = 下架中</td>
</tr>
<tr>
<td style="text-align: left;">goods.sku</td>
<td style="text-align: left;">array</td>
<td>商品sku列表</td>
</tr>
<tr>
<td style="text-align: left;">goods.sku.sku_id</td>
<td style="text-align: left;">string</td>
<td>商品skuid</td>
</tr>
<tr>
<td style="text-align: left;">goods.sku.goods_id</td>
<td style="text-align: left;">string</td>
<td>关联商品id</td>
</tr>
<tr>
<td style="text-align: left;">goods.sku.name</td>
<td style="text-align: left;">string</td>
<td>商品sku名称</td>
</tr>
<tr>
<td style="text-align: left;">goods.sku.vip_price</td>
<td style="text-align: left;">string</td>
<td>商品sku售价</td>
</tr>
<tr>
<td style="text-align: left;">goods.sku.buy_start_qty</td>
<td style="text-align: left;">string</td>
<td>商品sku起购数量</td>
</tr>
<tr>
<td style="text-align: left;">goods.sku.need_verify_identity</td>
<td style="text-align: left;">string</td>
<td>下单是否需要填写身份证 1 = 是 0 = 否</td>
</tr>
</tbody>
</table>