设为回收点
把某个地址设为回收点,之后上门的回收订单默认送到这里。
| 请求方式 | POST |
|---|---|
| 接口路径 | /api/address/setRecyclePoint |
| Content-Type | application/json |
| 鉴权 | X-Nideshop-Token |
请求体类型:Map<String, Object>
curl 调用
curl -s 'https://www.8shu8.com/api/address/setRecyclePoint' \ -H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN' \ -H 'Content-Type: application/json' \ -d '...'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"id": 1,
"userId": 1,
"userName": "string",
"telNumber": "string",
"postalCode": "string",
"nationalCode": "string",
"provinceName": "string",
"cityName": "string",
"countyName": "string",
"detailInfo": "string",
"lat": 0.0,
"lon": 0.0,
"addTime": "string",
"updateTime": "string",
"addressType": "...",
"recyclePoint": 1,
"addressTypeDesc": "string",
"distanceKm": 0.0,
"fullRegion": "string",
"allInfo": "string"
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
|---|---|---|
id | Integer | - |
userId | Long | - |
userName | String | 收货人姓名 |
telNumber | String | 手机 |
postalCode | String | 邮编 |
nationalCode | String | - |
provinceName | String | 省 |
cityName | String | 市 |
countyName | String | 区 |
detailInfo | String | 详细收货地址信息 |
lat | Double | 纬度 |
lon | Double | 经度 |
addTime | LocalDateTime | 添加时间 |
updateTime | LocalDateTime | 更新时间 |
addressType | 对象 | - |
recyclePoint | Integer | 1 设为回收点,回收订单送往此地址;默认 0 |
addressTypeDesc | String | - |
distanceKm | Double | 距当前用户的距离(公里),仅附近列表返回 |
fullRegion | String | - |
allInfo | String | - |