玩瞳文档中心


获取一个标签ID的所有下一级标签ID

<p><strong>服务:</strong>api-cloud <strong>API: </strong><code>cloud-api1.51wanxue.com/api-cloud/label/searchNextLabels/{labelId}</code> <strong>请求方式:</strong>GET <strong>api开发者:</strong> 生林 <strong>是否授权登录:</strong> 否 <strong>简要描述:</strong> 通过传入标签ID,获取该标签ID所有下一级标签的ID和名称。如果入参标签ID无下级标签,则应返回空标签数组。</p> <p><strong>参数:</strong> 无</p> <p><strong>备注:</strong> labelId在url中</p> <p><strong>返回示例</strong></p> <pre><code class="language-json">查询成功示例 { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;ok&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;labels&amp;quot;: [ { &amp;quot;id&amp;quot;: 1858, &amp;quot;labelName&amp;quot;: &amp;quot;加减法&amp;quot; }, { &amp;quot;id&amp;quot;: 1859, &amp;quot;labelName&amp;quot;: &amp;quot;逻辑推理&amp;quot; } ], &amp;quot;levelOfLabel&amp;quot;: 2 } } 查询失败示例 { &amp;quot;code&amp;quot;: 100401, &amp;quot;msg&amp;quot;: &amp;quot;the labelId does not exist.&amp;quot;, &amp;quot;data&amp;quot;: null }</code></pre> <p><strong>返回数据参数说明 </strong></p> <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;">code</td> <td style="text-align: left;">int</td> <td>请求返回码 0(表示成功)</td> </tr> <tr> <td style="text-align: left;">msg</td> <td style="text-align: left;">String</td> <td>系统返回提示</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">Object</td> <td>返回数据</td> </tr> </tbody> </table> <p><strong>data </strong></p> <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;">labels</td> <td style="text-align: left;">object[]</td> <td>标签列表</td> </tr> <tr> <td style="text-align: left;">levelOfLabel</td> <td style="text-align: left;">int</td> <td>第几级标签,1一级,2二级,3三级</td> </tr> </tbody> </table> <p><strong>labels </strong></p> <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;">id</td> <td style="text-align: left;">long</td> <td>标签id</td> </tr> <tr> <td style="text-align: left;">labelName</td> <td style="text-align: left;">String</td> <td>标签名</td> </tr> </tbody> </table>

页面列表

ITEM_HTML