# 接口变更记录 — 2026-03-26 14:14

> **提交** `8a5a9e7` · **作者** wx · **时间** 2026-03-26 14:14:54 +0800
>
> feat: 安全保障改为逐条管理(类似费用不包含)，废弃模板机制

## 变更总览

- **产品服务**
  - 🆕 ProductSafetyItem (+4 接口)

---

## 产品服务

### 🆕 新增: ProductSafetyItem

> 📖 **接口文档**: [http://192.168.100.236:8085/doc.html](http://192.168.100.236:8085/doc.html) → 标签 **「产品安全保障项管理」**

### 📌 `GET` /admin/product/{productId}/safety-item — 列表

**参数**

  - `{productId}` (`Long`) — 路径参数

**响应** `Result<List<Map<String, Object>>>`

### 📌 `POST` /admin/product/{productId}/safety-item — 添加

**参数**

  - `{productId}` (`Long`) — 路径参数

**请求体** `SafetyItemRequest`

**响应** `Result<Map<String, Object>>`

### 📌 `PUT` /admin/product/{productId}/safety-item/{id} — 更新

**参数**

  - `{productId}` (`Long`) — 路径参数
  - `{id}` (`Long`) — 路径参数

**请求体** `SafetyItemRequest`

**响应** `Result<Map<String, Object>>`

### 📌 `DELETE` /admin/product/{productId}/safety-item/{id} — 删除

**参数**

  - `{productId}` (`Long`) — 路径参数
  - `{id}` (`Long`) — 路径参数

**响应** `Result<Void>`

---

<details>
<summary>📁 全部变更文件 (点击展开)</summary>

```
A	hl-product-service/src/main/java/com/hulalv/product/controller/ProductSafetyItemController.java
A	hl-product-service/src/main/java/com/hulalv/product/entity/ProductSafetyItem.java
A	hl-product-service/src/main/java/com/hulalv/product/mapper/ProductSafetyItemMapper.java
M	hl-product-service/src/main/java/com/hulalv/product/service/ProductService.java
M	hl-product-service/src/test/java/com/hulalv/product/service/MpProductServiceTest.java
M	hl-product-service/src/test/java/com/hulalv/product/service/ProductServiceTest.java
```
</details>