jushi

权益充值


商品分类列表

<h4><strong>简要描述:</strong></h4> <p>商品分类列表接口</p> <h4><strong>请求URL:</strong></h4> <p><code>http://平台域名/api/v1/goods/cate</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>无</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> </tr> </tbody> </table> <h4><strong>签名示例:</strong></h4> <p><code>1696644296195{}apikey</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>{</code></li> <li><code>&amp;quot;id&amp;quot;: 365,</code></li> <li><code>&amp;quot;name&amp;quot;: &amp;quot;平台自营&amp;quot;,</code></li> <li><code>&amp;quot;pid&amp;quot;: 0,</code></li> <li><code>&amp;quot;img&amp;quot;: &amp;quot;http://imgs.kasushou.com/attach/2023/06/4d247202306110247593869.png&amp;quot;,</code></li> <li><code>&amp;quot;children&amp;quot;: [</code></li> <li><code>{</code></li> <li><code>&amp;quot;id&amp;quot;: 366,</code></li> <li><code>&amp;quot;name&amp;quot;: &amp;quot;测试&amp;quot;,</code></li> <li><code>&amp;quot;pid&amp;quot;: 365,</code></li> <li><code>&amp;quot;img&amp;quot;: &amp;quot;http://imgs.kasushou.com/attach/2023/06/4d247202306110247593869.png&amp;quot;</code></li> <li><code>}</code></li> <li><code>]</code></li> <li><code>},</code></li> <li><code>{</code></li> <li><code>&amp;quot;id&amp;quot;: 367,</code></li> <li><code>&amp;quot;name&amp;quot;: &amp;quot;测试商品分类&amp;quot;,</code></li> <li><code>&amp;quot;pid&amp;quot;: 0,</code></li> <li><code>&amp;quot;img&amp;quot;: &amp;quot;http://imgs.kasushou.com/attach/2023/06/4d247202306110247593869.png&amp;quot;,</code></li> <li><code>&amp;quot;children&amp;quot;: [</code></li> <li><code>{</code></li> <li><code>&amp;quot;id&amp;quot;: 368,</code></li> <li><code>&amp;quot;name&amp;quot;: &amp;quot;测试&amp;quot;,</code></li> <li><code>&amp;quot;pid&amp;quot;: 367,</code></li> <li><code>&amp;quot;img&amp;quot;: &amp;quot;http://imgs.kasushou.com/attach/2023/06/4d247202306110247593869.png&amp;quot;</code></li> <li><code>}</code></li> <li><code>]</code></li> <li><code>}</code></li> <li><code>]</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>id</td> <td>int</td> <td>一级分类ID</td> </tr> <tr> <td>name</td> <td>string</td> <td>一级分类名称</td> </tr> <tr> <td>pid</td> <td>int</td> <td>一级分类上级ID</td> </tr> <tr> <td>img</td> <td>string</td> <td>一级分类图片</td> </tr> <tr> <td>children</td> <td>array</td> <td>二级分类列表</td> </tr> </tbody> </table> <h4><strong>返回children说明:</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>name</td> <td>string</td> <td>二级分类名称</td> </tr> <tr> <td>pid</td> <td>int</td> <td>二级分类上级ID</td> </tr> <tr> <td>img</td> <td>string</td> <td>二级分类图片</td> </tr> </tbody> </table>

页面列表

ITEM_HTML