carousels - TimYi/FengHuang GitHub Wiki
请求URL
http://101.200.229.135:8080/api/page/{pageId}/carousels
请求方式
GET
请求参数
pageId:路径参数,对应navigation(导航)的id
返回参数
id:id
page:所属页面 {
id:id
type:菜单类型
ordernum:序号
title:标题
url:链接地址
}
ordernum:排序字段
pic:背景图片 {
id
url
}
fragment:模板配置 {
id:id
template:模板信息,详见模板管理的展示字段
values:已配置变量数组 [
{
id
name
type:TEXT,IMG
text:type=TEXT时展示此字段
pic:type=IMG时,展示图片信息{id,url}
}
]
templateContent:模板注入变量后,生成的html
}
返回示例
{
"result": [
{
"id": "404040e64e99db7e014e99db90e90004",
"page": {
"id": "404040e64e866c94014e866ca4110000",
"type": "URL",
"ordernum": 0,
"title": "首页",
"url": "/index.html"
},
"ordernum": 0,
"pic": null,
"fragment": {
"id": "404040e64e99dd20014e99dd32b70001",
"template": {
"id": "404040e64e94e3ee014e94e4048a0000",
"name": "test",
"type": null,
"pic": null,
"definitions": [
{
"id": "404040e64e94f9ab014e94f9eb280000",
"name": "test3",
"type": "TEXT",
"description": "测试数据"
},
{
"id": "404040e64e94f9ab014e94f9eb280001",
"name": "test4",
"type": "IMG",
"description": "测试图片数据"
}
],
"content": "
arguments{{ test3:TEXT :测试数据 }}
arguments{{ test4:IMG :测试图片数据 }}
"
},
"values": [
{
"id": "404040e64e99dd20014e99dd32b70002",
"name": "test4",
"type": "IMG",
"text": null,
"pic": {
"id": "404040e64e99dd20014e99dd32a80000",
"url": "http://101.200.229.135/media/20d0b9d9c52e48bf83894ddebdad446d.jpg",
"fileSize": 63720
}
},
{
"id": "404040e64e99dd20014e99dd32c70003",
"name": "test3",
"type": "TEXT",
"text": "testText",
"pic": null
}
],
"templateContent": "
argumentstestText
argumentslocalhost:8080/fenghuangzhujia/media/20d0b9d9c52e48bf83894ddebdad446d.jpg
"
}
}
],
"status": "OK"
}