jushi

权益充值


商品列表接口

<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> &quot; 点击查看签名规范&quot;)</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{&amp;quot;cate_id&amp;quot;:0,&amp;quot;keyword&amp;quot;:&amp;quot;&amp;quot;,&amp;quot;limit&amp;quot;:100,&amp;quot;page&amp;quot;:1}e3yw37fe2zhb4wb6p2zzmxerpr835pjy</code></p> <h4><strong>返回示例:</strong></h4> <ol> <li><code>{</code></li> <li><code>&amp;quot;code&amp;quot;: 200,</code></li> <li><code>&amp;quot;msg&amp;quot;: &amp;quot;成功&amp;quot;,</code></li> <li><code>&amp;quot;data&amp;quot;: {</code></li> <li><code>&amp;quot;list&amp;quot;: [</code></li> <li><code>{</code></li> <li><code>&amp;quot;id&amp;quot;: 2909,</code></li> <li><code>&amp;quot;goods_name&amp;quot;: &amp;quot;test自营手工&amp;quot;,</code></li> <li><code>&amp;quot;goods_img&amp;quot;: &amp;quot;http://img.kasushou.com/Uploads%2FAttachment%2F2022-10-25%2F63578b642b6c1.jpg&amp;quot;,</code></li> <li><code>&amp;quot;goods_type&amp;quot;: 2,</code></li> <li><code>&amp;quot;face_value&amp;quot;: &amp;quot;2.00&amp;quot;,</code></li> <li><code>&amp;quot;goods_price&amp;quot;: &amp;quot;2.00&amp;quot;,</code></li> <li><code>&amp;quot;status&amp;quot;: 1,</code></li> <li><code>&amp;quot;stock_num&amp;quot;: 9999</code></li> <li><code>},</code></li> <li><code>{</code></li> <li><code>&amp;quot;id&amp;quot;: 4,</code></li> <li><code>&amp;quot;goods_name&amp;quot;: &amp;quot;供货手工&amp;quot;,</code></li> <li><code>&amp;quot;goods_img&amp;quot;: &amp;quot;http://img.kasushou.com/Uploads%2FAttachment%2F2021-11-30%2F61a604627471e.jpeg&amp;quot;,</code></li> <li><code>&amp;quot;goods_type&amp;quot;: 2,</code></li> <li><code>&amp;quot;face_value&amp;quot;: &amp;quot;1.10&amp;quot;,</code></li> <li><code>&amp;quot;goods_price&amp;quot;: &amp;quot;1.10&amp;quot;,</code></li> <li><code>&amp;quot;status&amp;quot;: 2,</code></li> <li><code>&amp;quot;stock_num&amp;quot;: 1110</code></li> <li><code>}</code></li> <li><code>],</code></li> <li><code>&amp;quot;total&amp;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>

页面列表

ITEM_HTML