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