玩瞳文档中心


获取某资源库中属于某个标签的书本列表

<p><strong>服务:</strong>api-cloud <strong>API: </strong><code>cloud-api1.51wanxue.com/api-cloud/book/listBooksByRepoIdAndLabelId</code> <strong>请求方式:</strong>POST <strong>api开发者:</strong> 观李 <strong>是否授权登录:</strong> 是 <strong>简要描述:</strong> 取一个资源库中属于某个标签的书本列表,需登录授权,请求使用application/json形式传输,json对象放在body里面,分页查询的总记录数不超过210条</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;">repoId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>资源库Id</td> </tr> <tr> <td style="text-align: left;">labelId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>标签id</td> </tr> <tr> <td style="text-align: left;">pageNum</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>当前页数</td> </tr> <tr> <td style="text-align: left;">pageSize</td> <td style="text-align: left;">否</td> <td style="text-align: left;">int</td> <td>页数大小</td> </tr> </tbody> </table> <p><strong>备注</strong>: 1.参数是json对象。</p> <p><strong>返回示例</strong></p> <pre><code class="language-json">入参示例 { &amp;quot;repoId&amp;quot;:27, &amp;quot;labelId&amp;quot;:928 } 查询成功示例 { &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;ok&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;bookList&amp;quot;: [ { &amp;quot;bookId&amp;quot;: 3076, &amp;quot;bookName&amp;quot;: &amp;quot;469【精】他们都看见了一只猫&amp;quot;, &amp;quot;author&amp;quot;: &amp;quot;[美]布兰登·文策尔 &amp;quot;, &amp;quot;publisher&amp;quot;: &amp;quot;人的亲爱的&amp;quot;, &amp;quot;thumbnailUrl&amp;quot;: &amp;quot;http://files-dev.51wanxue.cn//brs/content/basebook/27/3076/4426eb34-929f-4309-b4df-40536c63e9ec.jpg&amp;quot; }, { &amp;quot;bookId&amp;quot;: 5123, &amp;quot;bookName&amp;quot;: &amp;quot;3116-代课老师&amp;quot;, &amp;quot;author&amp;quot;: &amp;quot;【美】斯坦 博丹&amp;quot;, &amp;quot;publisher&amp;quot;: &amp;quot;&amp;quot;, &amp;quot;thumbnailUrl&amp;quot;: &amp;quot;http://files-dev.51wanxue.cn//brs/content/basebook/27/5123/d7c6a6eb-9845-4e8c-b0b6-46701c252729.jpg&amp;quot; } ], &amp;quot;description&amp;quot;: { &amp;quot;pageSize&amp;quot;: 10, &amp;quot;currentPage&amp;quot;: 1, &amp;quot;totalRecord&amp;quot;: 2, &amp;quot;limit&amp;quot;: 10, &amp;quot;pages&amp;quot;: 1, &amp;quot;recordStartIndex&amp;quot;: 0, &amp;quot;recordEndIndex&amp;quot;: 20 } } } 查询失败示例 { &amp;quot;code&amp;quot;: 1001, &amp;quot;msg&amp;quot;: &amp;quot;Token is missing or invalid.&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>返回参数 </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;">bookList</td> <td style="text-align: left;">数组</td> <td>查询成功的数据</td> </tr> <tr> <td style="text-align: left;">bookId</td> <td style="text-align: left;">int</td> <td>书籍id</td> </tr> <tr> <td style="text-align: left;">bookName</td> <td style="text-align: left;">String</td> <td>书籍名字</td> </tr> <tr> <td style="text-align: left;">author</td> <td style="text-align: left;">String</td> <td>作者名字</td> </tr> <tr> <td style="text-align: left;">publisher</td> <td style="text-align: left;">String</td> <td>出版社</td> </tr> <tr> <td style="text-align: left;">thumbnailUrl</td> <td style="text-align: left;">String</td> <td>封面缩略图</td> </tr> <tr> <td style="text-align: left;">description</td> <td style="text-align: left;">分页信息</td> <td>查询成功的分页信息,所有数据不会超过210条</td> </tr> </tbody> </table>

页面列表

ITEM_HTML