商品列表接口
<h4><strong>简要描述:</strong></h4>
<p>商品列表接口</p>
<h4><strong>请求URL:</strong></h4>
<p><code>http://平台域名/api/v1/goods/list</code></p>
<h4><strong>请求方式:</strong></h4>
<p><code>POST</code></p>
<h4><strong>请求参数:</strong></h4>
<table>
<thead>
<tr>
<th>Header 参数</th>
<th>类型</th>
<th>是否必填</th>
<th>描述</th>
<th>示例值</th>
</tr>
</thead>
<tbody>
<tr>
<td>Sign</td>
<td>string</td>
<td>是</td>
<td>签名</td>
<td>[点击查看签名规范](<a href="https://doc.kasushou.com/api/v2api/39">https://doc.kasushou.com/api/v2api/39</a> " 点击查看签名规范")</td>
</tr>
<tr>
<td>Timestamp</td>
<td>string</td>
<td>是</td>
<td>13位时间戳(毫秒)</td>
<td>1696644296195</td>
</tr>
<tr>
<td>UserId</td>
<td>string</td>
<td>是</td>
<td>您的用户编号</td>
<td>10000</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>Body 参数</th>
<th>类型</th>
<th>是否必填</th>
<th>描述</th>
<th>示例值</th>
</tr>
</thead>
<tbody>
<tr>
<td>cate_id</td>
<td>int</td>
<td>否</td>
<td>二级分类ID</td>
<td>0</td>
</tr>
<tr>
<td>keyword</td>
<td>string</td>
<td>否</td>
<td>商品名称</td>
<td></td>
</tr>
<tr>
<td>limit</td>
<td>int</td>
<td>否</td>
<td>每页数量(为空默认为100条)</td>
<td>100</td>
</tr>
<tr>
<td>page</td>
<td>int</td>
<td>否</td>
<td>当前页码(为空默认为第1页)</td>
<td>1</td>
</tr>
</tbody>
</table>
<h4><strong>签名示例:</strong></h4>
<p><code>1696654563249{&quot;cate_id&quot;:0,&quot;keyword&quot;:&quot;&quot;,&quot;limit&quot;:100,&quot;page&quot;:1}e3yw37fe2zhb4wb6p2zzmxerpr835pjy</code></p>
<h4><strong>返回示例:</strong></h4>
<ol>
<li><code>{</code></li>
<li><code>&quot;code&quot;: 200,</code></li>
<li><code>&quot;msg&quot;: &quot;成功&quot;,</code></li>
<li><code>&quot;data&quot;: {</code></li>
<li><code>&quot;list&quot;: [</code></li>
<li><code>{</code></li>
<li><code>&quot;id&quot;: 2909,</code></li>
<li><code>&quot;goods_name&quot;: &quot;test自营手工&quot;,</code></li>
<li><code>&quot;goods_img&quot;: &quot;http://img.kasushou.com/Uploads%2FAttachment%2F2022-10-25%2F63578b642b6c1.jpg&quot;,</code></li>
<li><code>&quot;goods_type&quot;: 2,</code></li>
<li><code>&quot;face_value&quot;: &quot;2.00&quot;,</code></li>
<li><code>&quot;goods_price&quot;: &quot;2.00&quot;,</code></li>
<li><code>&quot;status&quot;: 1,</code></li>
<li><code>&quot;stock_num&quot;: 9999</code></li>
<li><code>},</code></li>
<li><code>{</code></li>
<li><code>&quot;id&quot;: 4,</code></li>
<li><code>&quot;goods_name&quot;: &quot;供货手工&quot;,</code></li>
<li><code>&quot;goods_img&quot;: &quot;http://img.kasushou.com/Uploads%2FAttachment%2F2021-11-30%2F61a604627471e.jpeg&quot;,</code></li>
<li><code>&quot;goods_type&quot;: 2,</code></li>
<li><code>&quot;face_value&quot;: &quot;1.10&quot;,</code></li>
<li><code>&quot;goods_price&quot;: &quot;1.10&quot;,</code></li>
<li><code>&quot;status&quot;: 2,</code></li>
<li><code>&quot;stock_num&quot;: 1110</code></li>
<li><code>}</code></li>
<li><code>],</code></li>
<li><code>&quot;total&quot;: 2</code></li>
<li><code>}</code></li>
<li><code>}</code></li>
</ol>
<h4><strong>返回data说明:</strong></h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>list</td>
<td>array</td>
<td>商品列表数据</td>
</tr>
<tr>
<td>total</td>
<td>int</td>
<td>获取到的商品总数量</td>
</tr>
</tbody>
</table>
<h4><strong>返回list说明:</strong></h4>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>int</td>
<td>商品ID</td>
</tr>
<tr>
<td>goods_name</td>
<td>string</td>
<td>商品名称</td>
</tr>
<tr>
<td>goods_img</td>
<td>string</td>
<td>商品图片</td>
</tr>
<tr>
<td>goods_type</td>
<td>int</td>
<td>商品类型:1=卡密商品,2=虚拟商品</td>
</tr>
<tr>
<td>face_value</td>
<td>string</td>
<td>商品面值</td>
</tr>
<tr>
<td>goods_price</td>
<td>string</td>
<td>商品价格</td>
</tr>
<tr>
<td>status</td>
<td>int</td>
<td>商品状态:1=销售,2=暂停,3=禁售</td>
</tr>
<tr>
<td>stock_num</td>
<td>int</td>
<td>商品库存</td>
</tr>
</tbody>
</table>