获取-轮播图数据
GET
/home/banner获取轮播图数据
请求参数
Query 参数
distributionSite
string
可选
广告区域展示位置(投放位置 投放位置,1为首页,2为分类商品页) 默认是1
示例值:
1
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
业务状态码
1成功, 其他失败
msg
string
响应消息
result
array [object {4}]
响应结果
id
string
轮播图id
imgUrl
string
轮播图地址
hrefUrl
string
轮播图跳转链接
type
string
轮播图跳转类型
跳转类型: 1、页面2、H5 3、小程序(小程序使用)
示例成功示例
{
"code": "1",
"msg": "操作成功",
"result": [
{
"id": "16",
"imgUrl": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-15/dfc11bb0-4af5-4e9b-9458-99f615cc685a.jpg",
"hrefUrl": "/category/1005000",
"type": "1"
},
{
"id": "18",
"imgUrl": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-15/1ba86bcc-ae71-42a3-bc3e-37b662f7f07e.jpg",
"hrefUrl": "/category/1013001",
"type": "1"
},
{
"id": "19",
"imgUrl": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-15/6d202d8e-bb47-4f92-9523-f32ab65754f4.jpg",
"hrefUrl": "/category/1013001",
"type": "1"
},
{
"id": "20",
"imgUrl": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-15/e83efb1b-309c-46f7-98a3-f1fefa694338.jpg",
"hrefUrl": "/category/1005000",
"type": "1"
},
{
"id": "17",
"imgUrl": "http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-15/4a79180a-1a5a-4042-8a77-4db0b9c800a8.jpg",
"hrefUrl": "/category/1019000",
"type": "1"
}
]
}
最后修改时间: 3 年前