文档
测试

获取广告

GET
https://zxdztest.gdlwzn.com/api/advertisement/advertisement

请求参数

参数名
类型
描述
必填
adType
0是新闻右侧 1是轮播图
必填
terminal
终端 0是PC
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
businessCode
int
示例:0
必填
msg
string
示例:success
必填
rows
object
示例:null
必填
data
array
数据列表
必填
id
int
id
必填
title
string
广告标题
必填
adType
string
广告type 0是新闻右侧 1是轮播图
必填
imageUrl
string
显示图片
必填
redirectType
string
0是不跳转 1是直接跳转 2是模块跳转
必填
redirectUrl
string
跳转地址
必填
linkModel
string
关联模块
必填
linkId
int
关联id
必填
orderNum
int
示例:0
必填
terminal
int
终端 0是PC 1是小程序
必填

说明 / 示例

{ "code": 0, "businessCode": 0, "msg": "success", "rows": null, "data": [ { "id": 15, "title": "轮播图", "adType": "1", "imageUrl": "https://lwzx.oss-cn-hangzhou.aliyuncs.com/3dprint/h5/2.png\r\n", "redirectType": "0", "redirectUrl": "http://3donline.gdlwzn.com/home", "linkModel": "0", "linkId": 0, "orderNum": 0, "terminal": 0 }, { "id": 16, "title": "轮播图", "adType": "1", "imageUrl": "https://lwzx.oss-cn-hangzhou.aliyuncs.com/3dprint/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20200916110018.png", "redirectType": "0", "redirectUrl": "http://3donline.gdlwzn.com/home", "linkModel": "0", "linkId": 0, "orderNum": 0, "terminal": 0 }, { "id": 17, "title": "轮播图", "adType": "1", "imageUrl": "https://lwzx.oss-cn-hangzhou.aliyuncs.com/3dprint/%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20200916110025.png", "redirectType": "0", "redirectUrl": "http://3donline.gdlwzn.com/home", "linkModel": "0", "linkId": 0, "orderNum": 0, "terminal": 0 } ] }