fix: gatherPlace/dismissalPlace changed to Amap JSON object
这个提交包含在:
父节点
fce41720c6
当前提交
e8ee4d552d
@ -22,19 +22,31 @@ PUT /admin/product/item/{id}/itinerary
|
|||||||
|
|
||||||
### 现在
|
### 现在
|
||||||
|
|
||||||
|
⚠️ **字段类型改为JSON对象**(存高德行政区搜索返回的完整数据)
|
||||||
|
|
||||||
```
|
```
|
||||||
PUT /admin/product/item/{id}/itinerary
|
PUT /admin/product/item/{id}/itinerary
|
||||||
{
|
{
|
||||||
"days": [{
|
"days": [{
|
||||||
"dayNumber": 1,
|
"dayNumber": 1,
|
||||||
"gatherPlace": "海拉尔", ← 每天独立
|
"gatherPlace": {
|
||||||
"dismissalPlace": "额尔古纳", ← 每天独立
|
"name": "海拉尔区",
|
||||||
|
"adcode": "150702",
|
||||||
|
"center": "119.736279,49.212189",
|
||||||
|
"level": "district"
|
||||||
|
},
|
||||||
|
"dismissalPlace": {
|
||||||
|
"name": "额尔古纳市",
|
||||||
|
"adcode": "150784",
|
||||||
|
"center": "120.180506,50.243102",
|
||||||
|
"level": "city"
|
||||||
|
},
|
||||||
"dayTitle": "D1",
|
"dayTitle": "D1",
|
||||||
"nodes": [...]
|
"nodes": [...]
|
||||||
}, {
|
}, {
|
||||||
"dayNumber": 2,
|
"dayNumber": 2,
|
||||||
"gatherPlace": "额尔古纳",
|
"gatherPlace": {"name": "额尔古纳市", "adcode": "150784", "center": "120.18,50.24", "level": "city"},
|
||||||
"dismissalPlace": "满洲里",
|
"dismissalPlace": {"name": "满洲里市", "adcode": "150781", "center": "117.45,49.59", "level": "city"},
|
||||||
...
|
...
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
@ -46,8 +58,8 @@ PUT /admin/product/item/{id}/itinerary
|
|||||||
|
|
||||||
| 字段 | 类型 | 说明 |
|
| 字段 | 类型 | 说明 |
|
||||||
|------|------|------|
|
|------|------|------|
|
||||||
| `gatherPlace` | String | 当日集合地 |
|
| `gatherPlace` | Object | 当日集合地 `{name, adcode, center, level}` |
|
||||||
| `dismissalPlace` | String | 当日解散地 |
|
| `dismissalPlace` | Object | 当日解散地 `{name, adcode, center, level}` |
|
||||||
| `dailyMileage` | BigDecimal | 当日里程(km),自动计算 |
|
| `dailyMileage` | BigDecimal | 当日里程(km),自动计算 |
|
||||||
| `dailyDuration` | Integer | 当日驾车时长(分钟),自动计算 |
|
| `dailyDuration` | Integer | 当日驾车时长(分钟),自动计算 |
|
||||||
|
|
||||||
|
|||||||
正在加载...
x
在新工单中引用
屏蔽一个用户