玩瞳文档中心


从“我的书架”中删除一本书

<p><strong>服务:</strong>api-cloud <strong>API: </strong><code>cloud-api1.51wanxue.com/api-cloud/user/book/delete</code> <strong>请求方式:</strong>GET/POST <strong>入参方式:</strong> formData <strong>api开发者:</strong> 祖旦 <strong>简要描述:</strong> 在设备openId关联的“我的书架”列表中删除指定的一本书。</p> <p><strong>请求样例:</strong></p> <pre><code>{ &amp;quot;bookId&amp;quot; : &amp;quot;123&amp;quot;, &amp;quot;openId&amp;quot; : &amp;quot;2312d019554011e99158d89ef3&amp;quot; }</code></pre> <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;">bookId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">int</td> <td>书本id,可根据isbn扫码后得到</td> </tr> <tr> <td style="text-align: left;">openId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">String</td> <td>用户id,可根据设备id查到,或者在app登录时响应信息里获取</td> </tr> </tbody> </table> <p><strong>备注:</strong></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 }</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>返回值为“ok”时代表请求成功,否则为请求失败的原因</td> </tr> <tr> <td style="text-align: left;">data</td> <td style="text-align: left;">Object</td> <td>默认返回空对象</td> </tr> </tbody> </table>

页面列表

ITEM_HTML