轮播图
获取轮播图列表
根据位置编号获取对应的轮播图列表。
- URL:
/app-api/promotion/banner/list - Method:
POST - 需要鉴权:是
请求参数
| 参数 | 类型 | 约束 | 说明 |
|---|---|---|---|
| position | Long | 必传 | 位置编号,见下方枚举 |
position 枚举值:
| 值 | 说明 |
|---|---|
| 1 | APP首页 |
| 2 | 资讯首页 |
| 3 | 商城首页 |
| 4 | 商城新品首页 |
| 5 | 品牌首页 |
| 6 | 博物馆首页 |
| 7 | 袋鼠时光首页 |
请求示例
{
"position": 1
}
响应示例
{
"code": 0,
"data": [
{
"id": 4,
"title": "测试",
"url": "http://www.iocoder.cn",
"picUrl": "https://example.com/banner.jpeg",
"position": 1
}
],
"msg": "成功"
}
响应说明
| 参数 | 类型 | 说明 |
|---|---|---|
| id | Long | 数据编号 |
| title | String | 标题 |
| url | String | 图片跳转链接地址 |
| picUrl | String | 图片地址 |
| position | Long | 位置编号 |