获取-轮播图数据
GET
/home/banner
小兔鲜电商/首页页面
请求参数
Query 参数
distributionSite
string
可选
示例值:
1
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/home/banner'
返回响应
🟢200成功
application/json
Body
code
string
业务状态码
msg
string
响应消息
result
array [object {4}]
响应结果
id
string
轮播图id
imgUrl
string
轮播图地址
hrefUrl
string
轮播图跳转链接
type
string
轮播图跳转类型
示例
{
"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"
}
]
}
修改于 2023-03-09 04:15:56