以树状结构获取页面列表
POST
/public-api/page-tree:::note[接口简介]
获取页面列表,通过树状结构展示
:::
请求参数
Query 参数
pgType
string
必需
页面类型。普通页面:PAGE;大屏页面:LARGE_SCREEN
Body 参数application/json
token
string
应用Token
在观远平台管理员设置-系统集成-统一账户集成中获得
示例
{
"token": "string"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
result
string
请求状态
枚举值: ok、fail
response
object
响应结果
id
string
id
parentDirId
string
父目录id
name
string
页面名称
contents
array [object {6}]
必需
示例
{
"result": "ok",
"response": {
"id": "a8ee6f4f1e4f3499c9091147",
"parentDirId": "",
"name": "根目录",
"contents": [
{
"id": "r98d878e941f54f318ef1208",
"parentDirId": "a8ee6f4f1e4f3499c9091147",
"name": "权限管理",
"contents": [
{
"id": "h7f4d6c35548b421bbf0c709",
"parentDirId": "r98d878e941f54f318ef1208",
"name": "布局",
"contents": [],
"isPage": false,
"ctime": "2024-03-08T10:43:48.00Z"
}
],
"isPage": false,
"ctime": "2019-08-13T15:33:13.00Z"
},
{
"id": "lc91beb031fdd4429a6b9215",
"parentDirId": "a8ee6f4f1e4f3499c9091147",
"name": "啦啦啦",
"contents": [],
"isPage": false,
"ctime": "2023-10-12T19:30:09.00Z"
}
]
}
}
最后修改时间: 3 个月前