fix: 小程序产品接口优化2项 (PR #28)

1. teamExperienceYears 所有产品类型返回
2. startPrice 定金模式返回定金起售价 + startPriceLabel

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
这个提交包含在:
API Changelog Bot 2026-03-27 18:49:54 +08:00
父节点 4cc6b325dc
当前提交 5a385545a0

查看文件

@ -0,0 +1,59 @@
# 小程序产品接口优化2项
**日期**: 2026-03-27
**类型**: BUG修复 + 优化
**影响服务**: hl-product-service
**影响接口**: `GET /mp/product/{productId}`(详情)、`GET /mp/product/list`(列表)、`GET /mp/product/recommend`(推荐)
---
## 1. 团队经验年数所有产品类型都返回
之前 `teamExperienceYears` 只有小蒙马(GROUP)产品才返回,现在所有产品类型都返回。
值自动从公司成立日期2005年计算,当前返回 **21**
---
## 2. 起售价根据支付模式返回
### 新增字段
| 字段 | 类型 | 说明 |
|------|------|------|
| startPriceLabel | String | 价格标签:`"起"``"定金起"` |
### startPrice 计算逻辑变更
| 支付模式 | startPrice | startPriceLabel |
|----------|-----------|----------------|
| FULL全款 | 最低售价(不变) | `"起"` |
| DEPOSIT定金+尾款) | 最低售价 × 定金比例(向上取整) | `"定金起"` |
### 影响范围
列表和详情都已修改,返回格式一致。
### 响应示例
```json
// 全款模式
{
"startPrice": 5980,
"startPriceLabel": "起",
"paymentMode": "FULL"
}
// 定金模式30%定金)
{
"startPrice": 1794,
"startPriceLabel": "定金起",
"paymentMode": "DEPOSIT"
}
```
### 前端使用建议
价格展示拼接方式:`¥${startPrice} ${startPriceLabel}`
示例效果:`¥5980 起``¥1794 定金起`