从玩瞳绘本图像库中领取书本
<p><strong>服务:</strong>api-cloud
<strong>API: </strong><code>cloud-api1.51wanxue.com/api-cloud/book/collarBook</code>
<strong>请求方式:</strong>POST
<strong>入参方式:</strong> Body raw方式
<strong>api开发者:</strong> 观李
<strong>是否授权登录:</strong> 是
<strong>简要描述:</strong>
将玩瞳绘本图像库的书本领取到指定的资源库(领取至资源库的资源待编辑模块),json对象放在body里面。该接口仅支持领取单本书,返回的虽然数组,但也只有一个元素。</p>
<p>注意,一本书在图像库里的ID和在资源库里的ID是不一样的。该接口的入参之一是图像库的书本ID,操作成功后,接口返回的是书本在资源库中的ID。</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;">repoId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">Integer</td>
<td>资源库id</td>
</tr>
<tr>
<td style="text-align: left;">baseBookId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">Long</td>
<td>图像库书本id,高清库的bookId由玩瞳到出表格,低清库则调用接口[搜索图像bookID](<a href="https://www.showdoc.com.cn/visiontalk/2458008722621461">https://www.showdoc.com.cn/visiontalk/2458008722621461</a> "搜索图像bookID")</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong>:
1.参数是json对象。</p>
<p><strong>示例</strong></p>
<pre><code class="language-json">入参示例
{
&quot;repoId&quot;: 30,
&quot;baseBookId&quot;: 2061
}
查询成功示例
{
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;ok&quot;,
&quot;data&quot;: {
&quot;refBookIds&quot;: [
14241
]
}
}
查询失败示例
{
&quot;code&quot;: 1001,
&quot;msg&quot;: &quot;Token is missing or invalid.&quot;,
&quot;data&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>refBookIds </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;">refBookIds</td>
<td style="text-align: left;">int[]</td>
<td>资源库中的bookId列表</td>
</tr>
</tbody>
</table>