脑悦康


获取分类信息

<p>[TOC]</p> <h5>简要描述</h5> <ul> <li>获取分类信息</li> </ul> <h5>请求URL</h5> <ul> <li><code>/nykapi/v2.product/get_product_categories</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET </li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">pid</td> <td style="text-align: left;">否</td> <td style="text-align: left;">父级id,未空则查询顶级分类</td> </tr> <tr> <td style="text-align: left;">page</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>当前页数,默认1,填0不分页</td> </tr> <tr> <td style="text-align: left;">limit</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>每页条数,默认10</td> </tr> <tr> <td style="text-align: left;">with_product</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>是否查询当前分类下的商品,1是0否,默认0</td> </tr> <tr> <td style="text-align: left;">with_page</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>查询当前分类下的商品 当前页数,默认1,填0不分页</td> </tr> <tr> <td style="text-align: left;">with_limit</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>查询当前分类下的商品 每页条数,默认10</td> </tr> </tbody> </table> <h5>返回示例</h5> <pre><code>{     &amp;quot;code&amp;quot;: 200,     &amp;quot;msg&amp;quot;: &amp;quot;success&amp;quot;,     &amp;quot;data&amp;quot;: {         &amp;quot;page&amp;quot;: {             &amp;quot;page&amp;quot;: 1,             &amp;quot;limit&amp;quot;: 3,             &amp;quot;count&amp;quot;: 23,             &amp;quot;pageCount&amp;quot;: 8,             &amp;quot;nextPage&amp;quot;: true         },         &amp;quot;archives&amp;quot;: [             {                 &amp;quot;cate_name&amp;quot;: &amp;quot;测试FC&amp;quot;,                 &amp;quot;id&amp;quot;: 36,                 &amp;quot;pic&amp;quot;: &amp;quot;http://naoyuekang-weixindev.oss-cn-chengdu.aliyuncs.com/nyk_data/product/attach/2022/03/16/c85153f35c68d90b15bb0d1eb67d4770.png&amp;quot;,                 &amp;quot;pid&amp;quot;: 0             },             {                 &amp;quot;cate_name&amp;quot;: &amp;quot;饰品&amp;quot;,                 &amp;quot;id&amp;quot;: 12,                 &amp;quot;pic&amp;quot;: &amp;quot;&amp;quot;,                 &amp;quot;pid&amp;quot;: 0             },             {                 &amp;quot;cate_name&amp;quot;: &amp;quot;日用品&amp;quot;,                 &amp;quot;id&amp;quot;: 13,                 &amp;quot;pic&amp;quot;: &amp;quot;http://osx.yishengyue.cn/public/uploads/attach/2020/04/23/5ea0fe4f97d52.png&amp;quot;,                 &amp;quot;pid&amp;quot;: 0             }         ]     } }</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;">cate_name</td> <td style="text-align: left;">string</td> <td>分类名称</td> </tr> <tr> <td style="text-align: left;">id</td> <td style="text-align: left;">int</td> <td>分类id</td> </tr> <tr> <td style="text-align: left;">pid</td> <td style="text-align: left;">int</td> <td>分类父级id</td> </tr> <tr> <td style="text-align: left;">pic</td> <td style="text-align: left;">string</td> <td>分类图标</td> </tr> </tbody> </table>

页面列表

ITEM_HTML