简要描述:
获取双栏广告列表视图及数据
请求域名:
- http://xx.com
请求URL:
GET/plugin.pc-terminal.admin.advert.two-advert-list(获取视图)
POST/plugin.pc-terminal.admin.advert.two-advert-list(获取列表数据)
传递的参数:
参数名 | 是否必须 | 类型 | 说明 |
---|
数据返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
id | int | 广告id |
uniacid | int | 平台id |
title | string | 广告名称 |
img | string | 广告图片地址(相对地址) |
img_src | string | 广告图片地址(绝对地址) |
url | string | 广告跳转链接 |
sort | int | 广告排序 |
is_show | int | 是否显示,1是0否 |
返回示例:
设置正确时返回的数据:
{
"result": 1,
"msg": "ok",
"data": {
"total": 2,
"per_page": 20,
"current_page": 1,
"last_page": 1,
"next_page_url": null,
"prev_page_url": null,
"from": 1,
"to": 2,
"data": [
{
"id": 3,
"uniacid": 1,
"title": "12321",
"img": "newimage/a30b6efaf162c9329fb489a0cea7d95e.jpg",
"url": "123123",
"sort": 0,
"is_show": 1,
"advert_type": 1,
"created_at": "2020-12-23 15:42:27",
"updated_at": "2020-12-23 15:50:07",
"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/a30b6efaf162c9329fb489a0cea7d95e.jpg"
},
{
"id": 1,
"uniacid": 1,
"title": "两栏广告",
"img": "newimage/4863b19849a289c6b7676cff8fb5a7d7.jpg",
"url": null,
"sort": 0,
"is_show": 1,
"advert_type": 1,
"created_at": "2020-12-21 16:06:29",
"updated_at": "2020-12-24 09:56:56",
"img_src": "http://shop-yunzshop-com.oss-cn-hangzhou.aliyuncs.com/newimage/4863b19849a289c6b7676cff8fb5a7d7.jpg"
}
]
}
}
错误时返回:
{
"result": 0,
"msg": "",
"data": []
}
备注:
- 更多返回错误代码请看首页的错误代码描述