玩瞳文档中心


通过资源库BookID获取书本标签

<p><strong>服务:</strong>api-cloud <strong>API:</strong> <code>http://cloud-api1.51wanxue.com/api-cloud/book/labels?bookId={bookid}</code> <strong>请求方式:</strong>GET <strong>api开发者:</strong> 林垚 <strong>是否授权登录:</strong> 是 <strong>简要描述:</strong> 通过资源库BookID获取书本标签,已标签树的形式返回</p> <p><strong>参数:</strong></p> <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;">token</td> <td style="text-align: left;">是</td> <td style="text-align: left;">String</td> <td>token,该参数需要放在请求头部</td> </tr> <tr> <td style="text-align: left;">bookId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">Long</td> <td>客户私有资源库里的书本Id</td> </tr> </tbody> </table> <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;id&amp;quot;: 1586, &amp;quot;name&amp;quot;: &amp;quot;儿童科普&amp;quot;, &amp;quot;fatherLabel&amp;quot;: { &amp;quot;id&amp;quot;: 1583, &amp;quot;name&amp;quot;: &amp;quot;主题分类&amp;quot;, &amp;quot;fatherLabel&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;">id</td> <td style="text-align: left;">Long</td> <td>标签Id</td> </tr> <tr> <td style="text-align: left;">name</td> <td style="text-align: left;">String</td> <td>标签名</td> </tr> <tr> <td style="text-align: left;">fatherLabel</td> <td style="text-align: left;">object</td> <td>树对象</td> </tr> </tbody> </table>

页面列表

ITEM_HTML