扫码收书
PDA 扫一本书加进当前草稿,可以连续扫,重复扫同一本会累加数量。
| 请求方式 | GET/POST |
| 接口路径 | /api/offlineReceive/scan |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
isbn | String | 是 | URL 参数 |
curl 调用
curl -s 'https://www.8shu8.com/api/offlineReceive/scan?isbn=xxx' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"items": [
{
"id": "...",
"userId": "...",
"subUserId": "...",
"batchId": "...",
"isbn": "...",
"title": "...",
"imageUrl": "...",
"weight": "...",
"unitRecyclePrice": "...",
"quantity": "...",
"verifiedQuantity": "...",
"addTime": "...",
"updateTime": "..."
}
],
"totalQuantity": 1,
"totalAmount": 0.0
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
items | 对象数组 | - |
items[].id | Long | - |
items[].userId | Long | - |
items[].subUserId | Long | 子账号/操作人用户ID |
items[].batchId | Long | 批次ID;NULL 表示当前未提交草稿 |
items[].isbn | String | - |
items[].title | String | - |
items[].imageUrl | String | - |
items[].weight | BigDecimal | - |
items[].unitRecyclePrice | BigDecimal | - |
items[].quantity | Integer | - |
items[].verifiedQuantity | Integer | - |
items[].addTime | LocalDateTime | - |
items[].updateTime | LocalDateTime | - |
totalQuantity | int | 总册数 sum(quantity) |
totalAmount | BigDecimal | 总金额 sum(unitRecyclePrice * quantity) |