新增或修改回收商品
往回收商品库里加一本书,或者改它的回收价和状态。
| 请求方式 | POST |
| 接口路径 | /api/recycle/merchant/goods/save |
| Content-Type | application/json |
| 鉴权 | X-Nideshop-Token |
请求体字段
| 字段 | 类型 | 必填 | 说明 |
id | Long | 否 | - |
userId | Long | 否 | - |
goodsSn | String | 否 | - |
recyclePrice | BigDecimal | 否 | - |
recycle | Boolean | 否 | 1 回收 0 不回收 |
addTime | LocalDateTime | 否 | - |
curl 调用
curl -s 'https://www.8shu8.com/api/recycle/merchant/goods/save' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"id": 1,
"userId": 1,
"goodsSn": "string",
"recyclePrice": 0.0,
"recycle": true,
"addTime": "string"
}'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"id": 1,
"userId": 1,
"goodsSn": "string",
"recyclePrice": 0.0,
"recycle": true,
"addTime": "string"
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
id | Long | - |
userId | Long | - |
goodsSn | String | - |
recyclePrice | BigDecimal | - |
recycle | Boolean | 1 回收 0 不回收 |
addTime | LocalDateTime | - |