玩瞳文档中心


禁用或启用书本API

<p><strong>服务:</strong>api-cloud <strong>API: </strong><code>cloud-api1.51wanxue.com/api-cloud/book/bookForbidden/{bookId}?state=1 | 2</code> <strong>请求方式:</strong>PUT <strong>api开发者:</strong> cgl <strong>是否授权登录:</strong> 是 <strong>请求示例:</strong> cloud-api1.51wanxue.com/api-cloud/book/bookForbidden/123?state=1 ,1表示禁用,2表示解禁 <strong>简要描述:</strong> ·使用Appkey登录授权<br /> ·该接口是基于客户已经通过“从玩瞳绘本图像库中领取书本API”领书成功,书本已经领取, ·通过此接口,可以将书资源待编辑、待审核、已审核的书本进行禁用; ·也可将禁用的书本启用,启用后该书本原本在哪个模块则回到哪个模块中</p> <p>·当入参填写正确: ——返回成功</p> <p>——返回失败,msg: book not found, 表示书本状态更新失败: 1)没有找到该书本; 2)如果禁用中的书本,无法通过此接口更改书本状态至已审核。如有禁用中书本返回失败时,需提示“该书本状态为禁用中,无法更新为已审核状态”。 将书本状态改为已审核,同时,书本的全部书页状态变为审核通过。</p> <p><strong>参数:</strong> 没有入参,bookId在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;: null } 查询失败示例 { &amp;quot;code&amp;quot;: 10002, &amp;quot;msg&amp;quot;: &amp;quot;book not found&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;"></td> <td>没有返回数据</td> </tr> </tbody> </table>

页面列表

ITEM_HTML