玩瞳文档中心


按照书本页码获取对应的试题和框数据接口

<p><strong>接口介绍: </strong> 四、按照书本页码获取对应的试题和框数据接口</p> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://client-api1.51wanxue.com/api-cloud/book/questFrameInfo?securityId = dsdg3242342&amp;amp;pageId={pageId}&amp;amp;token={token}</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>GET </li> </ul> <p><strong>请求参数:</strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>token</td> <td>是</td> <td>string</td> <td>请求token [如何获取token](<a href="https://www.showdoc.com.cn/2110520364488140/9483649154524319">https://www.showdoc.com.cn/2110520364488140/9483649154524319</a> &quot;如何获取token&quot;)</td> </tr> <tr> <td>securityId</td> <td>是</td> <td>string</td> <td>书本唯一标识</td> </tr> <tr> <td>pageId</td> <td>是</td> <td>long</td> <td>页码id</td> </tr> </tbody> </table> <p><strong>返回:</strong></p> <table> <thead> <tr> <th>字段名</th> <th>类型</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>questId</td> <td>long</td> <td>题id</td> </tr> <tr> <td>securityId</td> <td>string</td> <td>题安全id</td> </tr> <tr> <td>subject</td> <td>integer</td> <td>科目</td> </tr> <tr> <td>grade</td> <td>integer</td> <td>年级</td> </tr> <tr> <td>type</td> <td>integer</td> <td>题目类型</td> </tr> <tr> <td>fatherText</td> <td>string</td> <td>引文内容</td> </tr> <tr> <td>fatherImages</td> <td>string[]</td> <td>引图</td> </tr> <tr> <td>questWord</td> <td>string</td> <td>习题内容</td> </tr> <tr> <td>questImages</td> <td>string[]</td> <td>习题图片</td> </tr> <tr> <td>questCoordinate</td> <td>ShapeCoordinate</td> <td>习题坐标</td> </tr> <tr> <td>answers</td> <td>list</td> <td>答案,一题可能有多个空,与答题区一一对应</td> </tr> <tr> <td>--answer</td> <td>string</td> <td>批改答案</td> </tr> <tr> <td>--answerCoordinate</td> <td>ShapeCoordinate</td> <td>答题区框坐标</td> </tr> <tr> <td>showAnswer</td> <td>string</td> <td>展示答案,一题一个</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ &amp;quot;code&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;ok&amp;quot;, &amp;quot;data&amp;quot;: [ { &amp;quot;questId&amp;quot;:1234, &amp;quot;securityId&amp;quot;:&amp;quot;reqewq32321&amp;quot;, &amp;quot;subject&amp;quot;:1, &amp;quot;grade&amp;quot;:1, &amp;quot;type&amp;quot;: 2, &amp;quot;fatherText&amp;quot;:&amp;quot;fdf&amp;quot;, &amp;quot;fatherImages&amp;quot;:[ &amp;quot;http://t.51wanxue.com/brs/content/basebook/35/207845/278815a5-e234-4408-8270-944b0f6178bc.jpg&amp;quot;, &amp;quot;http://t.51wanxue.com/brs/content/basebook/35/207845/278815a5-e234-4408-8270-944b0f6178bc.jpg&amp;quot; ], &amp;quot;questWord&amp;quot;:&amp;quot;ewrfdasadsadsa&amp;quot;, &amp;quot;questImages&amp;quot;:[ &amp;quot;http://t.51wanxue.com/brs/content/basebook/35/207845/278815a5-e234-4408-8270-944b0f6178bc.jpg&amp;quot;, &amp;quot;http://t.51wanxue.com/brs/content/basebook/35/207845/278815a5-e234-4408-8270-944b0f6178bc.jpg&amp;quot; ], &amp;quot;questCoordinate&amp;quot;: { &amp;quot;strokeStyle&amp;quot;: &amp;quot;#FF0000&amp;quot;, &amp;quot;shape&amp;quot;: [ { &amp;quot;x&amp;quot;: 1293.914491608544, &amp;quot;y&amp;quot;: 1977.890337088053 }, { &amp;quot;x&amp;quot;: 1560.771945836966, &amp;quot;y&amp;quot;: 2158.596948899096 } ], &amp;quot;shapeType&amp;quot;: 0, &amp;quot;name&amp;quot;: &amp;quot;layer36&amp;quot;, &amp;quot;nickname&amp;quot;: &amp;quot;区域36&amp;quot; }, &amp;quot;answers&amp;quot;:[ { &amp;quot;answer&amp;quot;: &amp;quot;1&amp;quot;, &amp;quot;answerCoordinate&amp;quot;:{ &amp;quot;strokeStyle&amp;quot;: &amp;quot;#FF0000&amp;quot;, &amp;quot;shape&amp;quot;: [ { &amp;quot;x&amp;quot;: 1293.914491608544, &amp;quot;y&amp;quot;: 1977.890337088053 }, { &amp;quot;x&amp;quot;: 1560.771945836966, &amp;quot;y&amp;quot;: 2158.596948899096 } ], &amp;quot;shapeType&amp;quot;: 0, &amp;quot;name&amp;quot;: &amp;quot;layer36&amp;quot;, &amp;quot;nickname&amp;quot;: &amp;quot;区域36&amp;quot; }, }, { &amp;quot;answer&amp;quot;: &amp;quot;2&amp;quot;, &amp;quot;answerCoordinate&amp;quot;:{ &amp;quot;strokeStyle&amp;quot;: &amp;quot;#FF0000&amp;quot;, &amp;quot;shape&amp;quot;: [ { &amp;quot;x&amp;quot;: 1293.914491608544, &amp;quot;y&amp;quot;: 1977.890337088053 }, { &amp;quot;x&amp;quot;: 1560.771945836966, &amp;quot;y&amp;quot;: 2158.596948899096 } ], &amp;quot;shapeType&amp;quot;: 0, &amp;quot;name&amp;quot;: &amp;quot;layer36&amp;quot;, &amp;quot;nickname&amp;quot;: &amp;quot;区域36&amp;quot; }, } ], &amp;quot;showAnswer&amp;quot;:&amp;quot;1,2&amp;quot; } ] } </code></pre>

页面列表

ITEM_HTML