From 3be37031da06fac55f559e8d18b28e1fc2e94b51 Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Mon, 30 Mar 2026 10:25:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B0=8F=E7=A8=8B=E5=BA=8F=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E8=AF=A6=E6=83=85=E5=9B=A2=E6=9C=9F=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E4=BA=BA=E5=91=98=20(PR=20#35)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelogs/2026-03/30_batch_staff.md | 45 ++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 changelogs/2026-03/30_batch_staff.md diff --git a/changelogs/2026-03/30_batch_staff.md b/changelogs/2026-03/30_batch_staff.md new file mode 100644 index 0000000..ad09e5f --- /dev/null +++ b/changelogs/2026-03/30_batch_staff.md @@ -0,0 +1,45 @@ +# 小程序产品详情团期返回服务人员 + +- **日期**: 2026-03-30 +- **PR**: #35 +- **服务**: hl-product-service +- **类型**: feat + +## 变更内容 + +`GET /mp/product/{productId}` 产品详情接口中,团期(batches)列表新增 `staff` 字段。 + +### 新增字段 + +| 字段路径 | 类型 | 说明 | +|---------|------|------| +| batches[].staff | Array | 服务人员列表 | +| batches[].staff[].staffName | String | 姓名 | +| batches[].staff[].staffRole | String | 角色(GUIDE/GUIDE_ASSISTANT/PHOTOGRAPHER/LEADER/OTHER) | +| batches[].staff[].staffPhone | String | 脱敏手机号(138****8000) | + +### 返回示例 + +```json +{ + "batches": [ + { + "batchName": "第一期", + "departureDate": "2026-04-15", + "staff": [ + {"staffName": "张导", "staffRole": "GUIDE", "staffPhone": "138****8000"}, + {"staffName": "李摄影", "staffRole": "PHOTOGRAPHER", "staffPhone": "139****9000"} + ] + } + ] +} +``` + +## 前端影响 + +- 新增字段,向后兼容 +- 无人员时 staff 为空数组 + +## 需要重启 + +- hl-product-service