From 326c448c160613f72483b0e2453d02c31c462570 Mon Sep 17 00:00:00 2001 From: API Changelog Bot Date: Thu, 16 Apr 2026 18:33:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=EF=BC=9A=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E7=BB=91=E5=AE=9A=E8=B5=84=E6=BA=90=E8=AF=A6?= =?UTF-8?q?=E6=83=85(=E5=B0=81=E9=9D=A2/=E5=9B=BE=E7=89=87/=E5=9C=B0?= =?UTF-8?q?=E5=9D=80/=E6=8F=8F=E8=BF=B0/=E6=A0=87=E7=AD=BE)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2026-04-16_mp-node-resource-detail.md | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 changelogs/2026-04/2026-04-16_mp-node-resource-detail.md diff --git a/changelogs/2026-04/2026-04-16_mp-node-resource-detail.md b/changelogs/2026-04/2026-04-16_mp-node-resource-detail.md new file mode 100644 index 0000000..0161cfa --- /dev/null +++ b/changelogs/2026-04/2026-04-16_mp-node-resource-detail.md @@ -0,0 +1,46 @@ +# 节点返回绑定资源详情 + +- **日期**: 2026-04-16 +- **服务**: hl-product-service-v2 +- **PR**: #678 +- **类型**: feat + +## 概述 + +小程序产品详情和每日详情接口中,节点(`nodes[]`)现在返回绑定资源的详细信息。 + +## nodes[] 新增字段 + +| 字段 | 类型 | 说明 | +|------|------|------| +| `resourceName` | String | 资源原名 | +| `resourceCover` | String | 资源封面图URL | +| `resourceImages` | List | 资源图片列表 | +| `resourceAddress` | String | 资源地址 | +| `resourceDescription` | String | 资源简介 | +| `resourceTags` | List | 资源标签列表 | + +## 响应示例 + +```json +{ + "nodes": [{ + "nodeType": "SCENIC", + "nodeName": "呼籁营地", + "resourceName": "呼籁营地", + "startTime": "上午", + "description": "这片草原只有呼籁自己的团队...", + "resourceCover": "https://oss.xxx/cover.jpg", + "resourceImages": ["https://oss.xxx/1.jpg", "https://oss.xxx/2.jpg"], + "resourceAddress": "内蒙古自治区呼伦贝尔市...", + "resourceDescription": "专属营地,安静私密...", + "resourceTags": ["自然风光", "亲子", "露营"] + }] +} +``` + +## 说明 + +- 通过Feign批量查资源服务,一次调用补全所有节点 +- 节点未绑定资源(`resourceId=null`)时,资源字段全部为null +- 影响接口:`GET /mp/product/{id}` 和 `GET /mp/product/{id}/day/{dayNumber}`