保存收书设置
保存收书偏好。设置会直接影响回收估价和可收品类。
| 请求方式 | POST |
| 接口路径 | /api/collect/setting |
| Content-Type | application/json |
| 鉴权 | X-Nideshop-Token |
请求体字段
| 字段 | 类型 | 必填 | 说明 |
enabled | Integer | 否 | - |
pickupKm | Integer | 否 | - |
priceCoefficient | BigDecimal | 否 | - |
provinces | Array<String> | 否 | - |
curl 调用
curl -s 'https://www.8shu8.com/api/collect/setting' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"enabled": 1,
"pickupKm": 1,
"priceCoefficient": 0.0,
"provinces": [
"string"
]
}'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"enabled": 1,
"pickupKm": 1,
"priceCoefficient": 0.0,
"provinces": [
"string"
],
"provinceOptions": [
"string"
]
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
enabled | Integer | - |
pickupKm | Integer | - |
priceCoefficient | BigDecimal | - |
provinces | Array<String> | - |
provinceOptions | Array<String> | - |