文档
测试

首页广告

GET
advertising

接口描述

获取广告内容列表

响应参数

参数名
类型
描述
必填
title
string
广告标题
必填
image
string
广告图片地址
必填
order_num
int
排序号
必填
link_type
string
链接类型 ('salon', '活动沙龙'), ('article', '文章'), ('custom', '自定义')。如果是公众号链接就选custom,如果是站内文章ID就用article
必填
target
object
链接值,如果是活动沙龙或者站内文章应填写对应的ID。自定义链接可以设置完整链接地址(比如公众号文章)
必填
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, "link_type": "article", "target": '1', "enabled": true }, { "id": 2, "title": "首页轮播2", "pic_url": "http://anchun.oss-cn-beijing.aliyuncs.com/media%2Farticle%2Fthumbnail%2F9d890cfac7.jpg", "order_num": 50, "link_type": "custom", "target": 'https://mp.weixin.qq.com/s/Vix3QUr8-SB2RJ2JZQG7Jw', "enabled": true } ] ```