中科图灵开放平台 / 智慧消防系统管理模块 / 菜单管理-单位获取menu树 (或超级站点角色获取菜单树)

菜单管理-单位获取menu树 (或超级站点角色获取菜单树)

接口描述: 菜单管理-单位获取menu树 (或超级站点角色获取菜单树)

HTTP/HTTPS
请求协议
GET
请求方式
UTF-8
编码格式
JSON
返回格式
v1.0
版本号

接口参数

参数名字类型是否必须默认值其他说明
access_token字符串可选访问令牌,仅当开启签名验证时需要传递,生成令牌可使用App.Auth.ApplyToken接口
apiRequestRaw字符串可选-
headerInfo字符串可选-[]

返回字段

返回结果类型说明
ret整型状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误
data对象或混合类型业务数据,由各自接口指定,通常为对象
data.code字符串
data.msg字符串
data.data数组
data.data>>id字符串
data.data>>parentId字符串
data.data>>children数组
data.data>>children>>id字符串菜单/按钮id
data.data>>children>>parentId字符串上级id
data.data>>children>>children数组子级列表
data.data>>children>>children>>id字符串
data.data>>children>>children>>parentId字符串
data.data>>children>>children>>children数组
data.data>>children>>children>>icon字符串
data.data>>children>>children>>name字符串
data.data>>children>>children>>spread字符串
data.data>>children>>children>>path字符串
data.data>>children>>children>>keepAlive字符串
data.data>>children>>children>>code字符串
data.data>>children>>children>>type字符串
data.data>>children>>children>>label字符串
data.data>>children>>children>>sort字符串
data.data>>children>>icon字符串图标
data.data>>children>>name字符串菜单/按钮名称
data.data>>children>>spread字符串
data.data>>children>>path字符串路径
data.data>>children>>keepAlive字符串
data.data>>children>>code字符串编码
data.data>>children>>type字符串
data.data>>children>>label字符串说明
data.data>>children>>sort字符串排序
data.data>>icon字符串
data.data>>name字符串
data.data>>spread字符串
data.data>>path字符串
data.data>>keepAlive字符串
data.data>>code字符串
data.data>>type字符串
data.data>>label字符串
data.data>>sort字符串
msg字符串提示信息,失败时的错误提示

在线测试   

参数是否必须
service 必须
access_token 可选
apiRequestRaw 可选
headerInfo 可选

客户端请求示例

成功响应返回示例:
{
    "code": 0,
    "msg": null,
    "data": [
        {
            "id": 1000,
            "parentId": -1,
            "children": [
                {
                    "id": 10011,
                    "parentId": 1000,
                    "children": [
                        {
                            "id": 10018,
                            "parentId": 10011,
                            "children": [],
                            "icon": null,
                            "name": "建筑管理",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "buildingManage",
                            "type": "1",
                            "label": "建筑管理",
                            "sort": null
                        },
                        {
                            "id": 10019,
                            "parentId": 10011,
                            "children": [],
                            "icon": null,
                            "name": "平面图管理",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "floorImageMg",
                            "type": "1",
                            "label": "平面图管理",
                            "sort": null
                        },
                        {
                            "id": 10017,
                            "parentId": 10011,
                            "children": [],
                            "icon": null,
                            "name": "单位微型消防站",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "workplaceFireMg",
                            "type": "1",
                            "label": "单位微型消防站",
                            "sort": null
                        },
                        {
                            "id": 10016,
                            "parentId": 10011,
                            "children": [],
                            "icon": null,
                            "name": "人员角色管理",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "userRoleManage",
                            "type": "1",
                            "label": "人员角色管理",
                            "sort": null
                        },
                        {
                            "id": 10015,
                            "parentId": 10011,
                            "children": [],
                            "icon": null,
                            "name": "单位功能管理",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "workplaceFnMg",
                            "type": "1",
                            "label": "单位功能管理",
                            "sort": null
                        },
                        {
                            "id": 10014,
                            "parentId": 10011,
                            "children": [],
                            "icon": null,
                            "name": "用户管理",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "userManage",
                            "type": "1",
                            "label": "用户管理",
                            "sort": null
                        },
                        {
                            "id": 10013,
                            "parentId": 10011,
                            "children": [],
                            "icon": null,
                            "name": "部门管理",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "deptManage",
                            "type": "1",
                            "label": "部门管理",
                            "sort": null
                        },
                        {
                            "id": 10012,
                            "parentId": 10011,
                            "children": [],
                            "icon": null,
                            "name": "单位管理",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "workplaceManage",
                            "type": "1",
                            "label": "单位管理",
                            "sort": null
                        }
                    ],
                    "icon": "icon-web-icon-",
                    "name": "单位管理",
                    "spread": false,
                    "path": "/sysmanage/workplaceManage/index",
                    "keepAlive": "0",
                    "code": null,
                    "type": "0",
                    "label": "单位管理",
                    "sort": null
                },
                {
                    "id": 10010,
                    "parentId": 1000,
                    "children": [],
                    "icon": "icon-mysql",
                    "name": "厂商管理",
                    "spread": false,
                    "path": "/sysmanage/vendor/index",
                    "keepAlive": "0",
                    "code": null,
                    "type": "0",
                    "label": "厂商管理",
                    "sort": null
                },
                {
                    "id": 1100,
                    "parentId": 1000,
                    "children": [
                        {
                            "id": 1101,
                            "parentId": 1100,
                            "children": [],
                            "icon": null,
                            "name": "用户新增",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "sys_user_add",
                            "type": "1",
                            "label": "用户新增",
                            "sort": null
                        },
                        {
                            "id": 1102,
                            "parentId": 1100,
                            "children": [],
                            "icon": null,
                            "name": "用户修改",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "sys_user_edit",
                            "type": "1",
                            "label": "用户修改",
                            "sort": null
                        },
                        {
                            "id": 1103,
                            "parentId": 1100,
                            "children": [],
                            "icon": null,
                            "name": "用户删除",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "sys_user_del",
                            "type": "1",
                            "label": "用户删除",
                            "sort": null
                        }
                    ],
                    "icon": "icon-yonghuguanli",
                    "name": "用户管理",
                    "spread": false,
                    "path": "/admin/user/index",
                    "keepAlive": "1",
                    "code": null,
                    "type": "0",
                    "label": "用户管理",
                    "sort": null
                },
                {
                    "id": 1300,
                    "parentId": 1000,
                    "children": [
                        {
                            "id": 1304,
                            "parentId": 1300,
                            "children": [],
                            "icon": null,
                            "name": "分配权限",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "sys_role_perm",
                            "type": "1",
                            "label": "分配权限",
                            "sort": null
                        },
                        {
                            "id": 1303,
                            "parentId": 1300,
                            "children": [],
                            "icon": null,
                            "name": "角色删除",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "sys_role_del",
                            "type": "1",
                            "label": "角色删除",
                            "sort": null
                        },
                        {
                            "id": 1301,
                            "parentId": 1300,
                            "children": [],
                            "icon": null,
                            "name": "角色新增",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "sys_role_add",
                            "type": "1",
                            "label": "角色新增",
                            "sort": null
                        },
                        {
                            "id": 1302,
                            "parentId": 1300,
                            "children": [],
                            "icon": null,
                            "name": "角色修改",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "sys_role_edit",
                            "type": "1",
                            "label": "角色修改",
                            "sort": null
                        }
                    ],
                    "icon": "icon-jiaoseguanli",
                    "name": "角色管理",
                    "spread": false,
                    "path": "/admin/role/index",
                    "keepAlive": "0",
                    "code": null,
                    "type": "0",
                    "label": "角色管理",
                    "sort": null
                }
            ],
            "icon": "icon-quanxianguanli",
            "name": "系统管理",
            "spread": false,
            "path": "/user",
            "keepAlive": "0",
            "code": null,
            "type": "0",
            "label": "系统管理",
            "sort": null
        },
        {
            "id": 2000,
            "parentId": -1,
            "children": [
                {
                    "id": 2100,
                    "parentId": 2000,
                    "children": [
                        {
                            "id": 2101,
                            "parentId": 2100,
                            "children": [],
                            "icon": null,
                            "name": "日志删除",
                            "spread": false,
                            "path": null,
                            "keepAlive": "0",
                            "code": "sys_log_del",
                            "type": "1",
                            "label": "日志删除",
                            "sort": null
                        }
                    ],
                    "icon": "icon-rizhiguanli",
                    "name": "日志管理",
                    "spread": false,
                    "path": "/admin/log/index",
                    "keepAlive": "0",
                    "code": null,
                    "type": "0",
                    "label": "日志管理",
                    "sort": null
                }
            ],
            "icon": "icon-xitongguanli",
            "name": "系统",
            "spread": false,
            "path": "/admin",
            "keepAlive": "0",
            "code": null,
            "type": "0",
            "label": "系统",
            "sort": null
        },
        {
            "id": 10002,
            "parentId": -1,
            "children": [],
            "icon": "icon-luyou",
            "name": "概览",
            "spread": false,
            "path": "/overview",
            "keepAlive": "1",
            "code": null,
            "type": "0",
            "label": "概览",
            "sort": null
        },
        {
            "id": 10003,
            "parentId": -1,
            "children": [],
            "icon": "icon-msnui-supervise",
            "name": "数据分析",
            "spread": false,
            "path": "/dataanalysis ",
            "keepAlive": "1",
            "code": null,
            "type": "0",
            "label": "数据分析",
            "sort": null
        },
        {
            "id": 10004,
            "parentId": -1,
            "children": [],
            "icon": "icon-rizhiguanli",
            "name": "实时监测",
            "spread": false,
            "path": "/real_time_monitoring",
            "keepAlive": "1",
            "code": null,
            "type": "0",
            "label": "实时监测",
            "sort": null
        },
        {
            "id": 10006,
            "parentId": -1,
            "children": [],
            "icon": "icon-fensiguanli",
            "name": "设备巡检",
            "spread": false,
            "path": "/device_inspection",
            "keepAlive": "1",
            "code": null,
            "type": "0",
            "label": "设备巡检",
            "sort": null
        },
        {
            "id": 10007,
            "parentId": -1,
            "children": [],
            "icon": "icon-guanwangfangwen",
            "name": "危险预警",
            "spread": false,
            "path": "/early_warning_of_danger",
            "keepAlive": "1",
            "code": null,
            "type": "0",
            "label": "危险预警",
            "sort": null
        },
        {
            "id": 10008,
            "parentId": -1,
            "children": [],
            "icon": "icon-caidanguanli",
            "name": "日常管理",
            "spread": false,
            "path": "/daily_management",
            "keepAlive": "1",
            "code": null,
            "type": "0",
            "label": "日常管理",
            "sort": null
        },
        {
            "id": 10009,
            "parentId": -1,
            "children": [],
            "icon": "icon-guanwang",
            "name": "系统设置",
            "spread": false,
            "path": "/system_config",
            "keepAlive": "1",
            "code": null,
            "type": "0",
            "label": "系统设置",
            "sort": null
        }
    ]
}
失败响应返回示例:

错误列表

错误状态码错误描述信息
400ret=400,客户端参数错误或非法请求
404表示接口服务不存在
406ret=406,access_token令牌校验不通过
407ret=407,app_key权限不足,或未知应用
408ret=408,当前用户禁止使用,或用户未登录
409ret=409,接口流量不足
500表示服务端内部错误

本文档生成时间:2024-05-14 21:16:37