update: 安全保障模板机制通知
这个提交包含在:
父节点
e6f86615df
当前提交
d5ac4294ab
@ -224,3 +224,42 @@
|
|||||||
**兼容**:旧字段 `certificateUrls` / `certificateTags` 保留可用,但建议前端迁移到 `certificates`。
|
**兼容**:旧字段 `certificateUrls` / `certificateTags` 保留可用,但建议前端迁移到 `certificates`。
|
||||||
|
|
||||||
**领队介绍**:小程序详情 `leaderInfoList` 中的 `certificateTags` 优先从 `certificates` 提取,同时也返回完整的 `certificates` 列表。
|
**领队介绍**:小程序详情 `leaderInfoList` 中的 `certificateTags` 优先从 `certificates` 提取,同时也返回完整的 `certificates` 列表。
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## 八、安全保障改为模板机制
|
||||||
|
|
||||||
|
**服务**: hl-product-service
|
||||||
|
|
||||||
|
### 模板管理接口
|
||||||
|
|
||||||
|
| 方法 | 路径 | 说明 |
|
||||||
|
|------|------|------|
|
||||||
|
| GET | `/product/safety-template` | 模板列表 |
|
||||||
|
| GET | `/product/safety-template/{id}` | 模板详情 |
|
||||||
|
| POST | `/product/safety-template` | 创建模板 |
|
||||||
|
| PUT | `/product/safety-template/{id}` | 更新模板 |
|
||||||
|
| DELETE | `/product/safety-template/{id}` | 删除模板(默认模板不可删) |
|
||||||
|
|
||||||
|
请求体:
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"name": "标准安全保障",
|
||||||
|
"items": [
|
||||||
|
{ "icon": "insurance", "title": "保险", "description": "中国人保50万,含意外医疗" },
|
||||||
|
{ "icon": "vehicle", "title": "车辆", "description": "营运资质、儿童安全座椅、司机驾龄10年" },
|
||||||
|
{ "icon": "emergency", "title": "应急", "description": "24h客服,医院30分钟可达" }
|
||||||
|
],
|
||||||
|
"isDefault": true
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 产品关联
|
||||||
|
|
||||||
|
产品保存/更新时可传 `safetyTemplateId` 指定模板。**不传则自动使用默认模板**,定制师无需手动配置。
|
||||||
|
|
||||||
|
### 详情返回逻辑
|
||||||
|
|
||||||
|
`safetyItems` 字段填充优先级:产品指定模板 → 产品自身旧数据 → 默认模板。前端无需改动,`safetyItems` 返回格式不变。
|
||||||
|
|
||||||
|
系统已内置默认模板"标准安全保障"(保险/车辆/应急三项)。
|
||||||
|
|||||||
正在加载...
x
在新工单中引用
屏蔽一个用户