Table of Contents
4.3 运营内容列表【基础探测通过,待数据联调】
GET /tieup/api/v1/app/operation-contents
查询参数:
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
content_type |
string | 否 | banner、notice、popup、guide |
响应字段:
| 字段 | 类型 | 说明 |
|---|---|---|
content_code |
string | 运营内容编码,后台配置唯一标识 |
content_type |
string | 运营内容类型:banner、notice、popup、guide |
title |
string | 标题 |
summary |
string/null | 摘要 |
image_url |
string/null | 图片 URL |
target_url |
string/null | 跳转目标 URL |
content |
string/null | 运营内容正文 |
config |
object/null | 扩展配置,结构由后台运营内容配置决定 |
items[].content_type |
string | 运营内容类型:banner=Banner,notice=公告,popup=弹窗,guide=引导 |
items[].title |
string | 标题 |
items[].image_url |
string | 图片 URL |
items[].link_url |
string | 跳转链接 URL |
响应示例:
{
"code": 200,
"message": "成功",
"data": [
{
"content_type": "banner",
"title": "新人活动",
"image_url": "https://cdn.example.com/banner.png",
"link_url": "tieup://activity/1"
}
]
}
说明:
- 鉴权:公开接口,不需要
Authorization。 - 服务端按平台默认和渠道覆盖合并,展示时间窗口未生效或已过期的内容不会返回。
- 测试状态:已完成代码实现和 PHP 语法检查,待运营内容数据联调。