feat: tier description + insurance scheme filter by totalDays
这个提交包含在:
父节点
00d40ae328
当前提交
3819ab508b
@ -0,0 +1,51 @@
|
||||
# 档位描述 + 保险方案按天数筛选
|
||||
|
||||
- **日期**: 2026-04-16
|
||||
- **服务**: hl-product-service-v2, hl-order-service-v2
|
||||
- **PR**: #667
|
||||
- **类型**: feat
|
||||
|
||||
## 1. 档位描述字段
|
||||
|
||||
### Step1 基础信息保存
|
||||
|
||||
`tiers` 规格列表新增 `tierDescription` 字段:
|
||||
|
||||
```json
|
||||
{
|
||||
"tiers": [
|
||||
{"tierSeq": 1, "tierName": "轻奢", "tierDescription": "精选三星酒店,舒适出行"},
|
||||
{"tierSeq": 2, "tierName": "高端", "tierDescription": "五星酒店+专车接送,尊享体验"}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### 小程序详情
|
||||
|
||||
`tierPrices[]` 也返回 `tierDescription`:
|
||||
|
||||
```json
|
||||
{
|
||||
"tierPrices": [
|
||||
{"tierSeq": 1, "tierName": "轻奢", "tierDescription": "精选三星酒店", "startPrice": 3980},
|
||||
{"tierSeq": 2, "tierName": "高端", "tierDescription": "五星酒店", "startPrice": 5980}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## 2. 保险方案按行程天数筛选
|
||||
|
||||
### GET /admin/insurance/scheme/list 新增参数
|
||||
|
||||
| 参数 | 类型 | 必填 | 说明 |
|
||||
|------|------|------|------|
|
||||
| `totalDays` | Integer | 否 | 行程天数,传了则只返回匹配的方案 |
|
||||
|
||||
**示例**:
|
||||
```
|
||||
GET /admin/insurance/scheme/list?totalDays=6
|
||||
```
|
||||
|
||||
只返回 `totalDays=6` 的启用方案。不传则返回全部(向后兼容)。
|
||||
|
||||
**前端操作**:选择保险方案下拉框时,传当前产品的 `tripDays` 作为 `totalDays` 参数。
|
||||
正在加载...
x
在新工单中引用
屏蔽一个用户