文档
测试

首页广告

GET
advertising

接口描述

获取广告内容列表

请求参数

参数名
类型
描述
必填
category
string
对应列表 ('index_carousel', '首页轮播'), ('top', '首页置顶列表'), ('main', '首页广告'), ('bottom', '首页底部广告'), ('experience_top', '体验馆顶部'),
必填

响应参数

参数名
类型
描述
必填
title
string
广告标题
必填
image
string
广告图片地址
必填
order_num
int
排序号
必填
category
string
广告类型
必填
link_type
string
链接类型
必填
target
object
链接值
必填
enabled
boolean
是否启用
必填

说明 / 示例

根据category返回广告列表。是list。如果没有指定 category,则返回全部。 ```json [ { "id": 1, "title": "轮播1", "image": "http://anchun.oss-cn-beijing.aliyuncs.com/media%2Farticle%2Fthumbnail%2F9d890cfac7.jpg", "order_num": 40, "category": "index_carousel", "link_type": "goods", "target": null, "enabled": true }, { "id": 2, "title": "轮播2", "pic_url": "http://anchun.oss-cn-beijing.aliyuncs.com/media%2Farticle%2Fthumbnail%2F9d890cfac7.jpg", "order_num": 50, "category": "index_carousel", "link_type": "goods", "target": null, "enabled": true }, { "id": 3, "title": "轮播3", "pic_url": "http://mp.nsw888.com/xSource/NS115845111/20200610181727_7196.jpg", "order_num": 60, "category": "index_carousel", "link_type": "goods", "target": null, "enabled": true } ] ```