5.7 获取商品库列表
<h3>5.7 获取商品库列表</h3>
<p>> - Url路径:api/product/list</p>
<h4>5.7.1 接口请求模型</h4>
<table>
<thead>
<tr>
<th>参数代码 </th>
<th>参数类型参数类型</th>
<th>参数长度</th>
<th>代码标识说明</th>
<th>是否非空</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>pageNum </td>
<td>int </td>
<td>4 </td>
<td> </td>
<td>Y </td>
<td>页码(默认0) </td>
</tr>
<tr>
<td>channelType</td>
<td>int </td>
<td>1 </td>
<td>Y </td>
<td>Y </td>
<td>渠道销售类型(默认0:O2O,1:B2C)</td>
</tr>
</tbody>
</table>
<h4>5.7.2 接口返回模型</h4>
<table>
<thead>
<tr>
<th>参数代码</th>
<th>参数类型参数类型 </th>
<th>参数长度</th>
<th>代码标识说明</th>
<th>是否非空</th>
<th>说明 </th>
</tr>
</thead>
<tbody>
<tr>
<td>products</td>
<td>List<getProductsModel></td>
<td> </td>
<td> </td>
<td>Y </td>
<td>商品编码集合(最大返回3000行)</td>
</tr>
</tbody>
</table>
<p>Demo:</p>
<pre><code>Request:
{
&quot;appKey&quot;:&quot;NepHealth&quot;,
&quot;nonce&quot;:&quot;Tdsad2saa2a&quot;,
&quot;timestamp&quot;:1639119614,
&quot;sign&quot;:&quot;a1f8f760de8edfe74b3b7bb9d9c51e4379abfbdb1&quot;,
&quot;input&quot;:{
&quot;pageNum&quot;:1,
&quot;channelType&quot;:0
}
}
Response:
{
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;ok&quot;,
&quot;nonce&quot;: &quot;Tdsad2saa2a&quot;,
&quot;output&quot;: {
&quot;products&quot;: [{
&quot;upc&quot;: &quot;0000066&quot;
},
{
&quot;upc&quot;: &quot;0011075&quot;
}
]
}
}</code></pre>