hl-api-changelog/changelogs/2026-04/2026-04-16_mp-node-resource-detail.md

47 行
1.4 KiB
Markdown

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

# 节点返回绑定资源详情
- **日期**: 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}`