搜索书籍API
<h1>开发者</h1>
<ul>
<li>罗恒山</li>
</ul>
<h1>说明</h1>
<ul>
<li>搜索ISBN、书名、出版社、作者</li>
</ul>
<h1>请求</h1>
<ul>
<li>Endpoint: <code>/api/scan/search</code></li>
<li>Method:GET</li>
</ul>
<h1>查询条件(filter)</h1>
<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;">text</td>
<td style="text-align: left;">string</td>
<td>搜索关键词</td>
</tr>
<tr>
<td style="text-align: left;">scan_id</td>
<td style="text-align: left;">int</td>
<td>批次ID</td>
</tr>
</tbody>
</table>
<h1>返回示例</h1>
<pre><code>{
"status_code": 200,
"message": "",
"data": {
"current_page": 1,
"data": [
{
"id": 51,
"erp_id": "D1000674333",
"isbn": "9787560013732",
"clc_id": 94,
"clc_name": "语言、文字",
"dc_id": 15,
"dc_name": "中国哲学",
"type": 1,
"name": "论语(大师经典文库)",
"price": "14.90",
"publish_date": "2010-01-01",
"pic": "https://img.read591.com/goods/goods6204b219a4038.jpg",
"images": [
"https://img.read591.com/goods/goods6204b219a4038.jpg"
],
"press_id": 24,
"press_name": "外语教学与研究出版社",
"author_name": "孔子",
"marc": "",
"is_sale": 1,
"summary": "",
"preview_file": "https://yd-sc.oss-cn-hangzhou.aliyuncs.com/sc/preview/D1000674333/p_D1000674333.pdf",
"created_at": "2022-01-28 10:34:02",
"updated_at": "2022-05-19 11:15:05",
"deleted_at": "论语(大师经典文库)",
"marc_type": "null",
"marc_decode": null,
"on_order": ""
}
],
"first_page_url": "http://gc.my/api/scan/search?page=1",
"from": 1,
"last_page": 4,
"last_page_url": "http://gc.my/api/scan/search?page=4",
"links": [
{
"url": null,
"label": "&laquo; 上一页",
"active": false
},
{
"url": "http://gc.my/api/scan/search?page=1",
"label": "1",
"active": true
},
{
"url": "http://gc.my/api/scan/search?page=2",
"label": "2",
"active": false
},
{
"url": "http://gc.my/api/scan/search?page=3",
"label": "3",
"active": false
},
{
"url": "http://gc.my/api/scan/search?page=4",
"label": "4",
"active": false
},
{
"url": "http://gc.my/api/scan/search?page=2",
"label": "下一页 &raquo;",
"active": false
}
],
"next_page_url": "http://gc.my/api/scan/search?page=2",
"path": "http://gc.my/api/scan/search",
"per_page": 15,
"prev_page_url": null,
"to": 15,
"total": 53
}
}</code></pre>
<h1>返回参数说明</h1>
<h1>备注</h1>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>