fix(mp-product): MP 产品详情 fees 补 feeType + icon 字段 PR #1601

这个提交包含在:
API Changelog Bot 2026-05-01 16:08:15 +08:00
父节点 f26e27da44
当前提交 4909f629fb

查看文件

@ -0,0 +1,61 @@
# 小程序产品详情 includedFees/excludedFees 补 feeType + icon 字段
**类型**: 后端 BUG 修复
**前端处理者**: mmg
**日期**: 2026-05-01
**关联**: 工单 #1600 / PR #1601
**影响**: 小程序产品详情接口 `GET /mp/product/{productId}` 的 includedFees / excludedFees 数组每项
---
## 现象
前端反馈接口返回的 includedFees / excludedFees 字段不对, 每项只有 name + description, 缺类型字段无法分类展示。
## 修复
`MpProductDetailRespVO.FeeInfo` VO 加 feeType + icon 字段:
```jsonc
{
"code": 200,
"data": {
"includedFees": [
{
"name": "扎赉诺尔博物馆,巴尔虎蒙古部落,海拉尔国家森林公园",
"description": null,
"feeType": "景区", // 🆕 字典值: 景区/游玩项目/住宿/餐饮/交通
"icon": "<svg ...>" // 🆕 admin 上传的 SVG 字符串(无则 null)
},
{
"name": "海拉尔首旅京伦酒店, 额尔古纳豪星酒店",
"description": null,
"feeType": "住宿",
"icon": "<svg ...>"
}
],
"excludedFees": [
{
"name": "往返大交通",
"description": "",
"feeType": null, // excluded 类是手动录入, 可能无类型
"icon": null
}
]
}
}
```
## 字典: fee_type
| value | label |
|-------|-------|
| 景区 | 景区(门票) |
| 游玩项目 | 游玩项目(活动) |
| 住宿 | 住宿 |
| 餐饮 | 餐饮 |
| 交通 | 交通 |
## 测试服已就绪
GET https://api.test.1814.love:9443/mp/product/2049754271968047106 直接验证。