接口地址:<gateway>?app=page&controller=section&action=ls
接受参数:
参数 |
名称 |
传递类型 |
值类型 |
备注 |
pageid |
页面编号 |
GET |
整型 |
必须传递,读取该页面的区块列表 |
返回数据:
{
"state": true,
"data": [{
"sectionid": "9",
"pageid": "1",
"name": "\u4eca\u65e5\u5934\u6761",
"type": "hand",
"output": "html",
"rows": "1",
"published": "1341475092"
}, {
"sectionid": "10",
"pageid": "1",
"name": "\u4eca\u65e5\u5934\u6761-\u76f8\u51732",
"type": "hand",
"output": "html,xml",
"rows": "2",
"published": "1336614279"
}]
}
返回字段说明:
参数 |
名称 |
备注 |
pageid |
页面编号 |
|
sectionid |
区块编号 |
|
name |
区块名称 |
|
type |
区块类型 |
push推荐区块,auto 自动区块,hand 手动区块, html 代码区块 |
output |
输出类型 |
可能的值有html,xml,json三种类型 |
rows |
输出条数 |
|
published |
发布时间 |
时间戳格式 |