中科图灵开放平台 / 智慧消防系统管理模块 / 用户登录后,获取其左侧栏菜单列表

用户登录后,获取其左侧栏菜单列表

接口描述: 用户登录后,获取其左侧栏菜单列表

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

接口参数

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

返回字段

返回结果类型说明
ret整型状态码,200表示成功,4xx表示客户端非法请求,5xx表示服务器错误
data对象或混合类型业务数据,由各自接口指定,通常为对象
data.code字符串
data.data数组
data.data>>id字符串
data.data>>parentId字符串
data.data>>children数组
data.data>>children>>id字符串
data.data>>children>>parentId字符串
data.data>>children>>children数组
data.data>>children>>icon字符串
data.data>>children>>name字符串
data.data>>children>>spread字符串
data.data>>children>>path字符串
data.data>>children>>keepAlive字符串
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>>type字符串
data.data>>label字符串
data.data>>sort字符串
msg字符串提示信息,失败时的错误提示

在线测试   

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

客户端请求示例

成功响应返回示例:
{
    "code": 0,
    "data": [
        {
            "id": 1000,
            "parentId": -1,
            "children": [
                {
                    "id": 1100,
                    "parentId": 1000,
                    "children": [],
                    "icon": "icon-yonghuguanli",
                    "name": "用户管理",
                    "spread": false,
                    "path": "/admin/user/index",
                    "keepAlive": "1",
                    "type": "0",
                    "label": "用户管理",
                    "sort": 1
                },
                {
                    "id": 1200,
                    "parentId": 1000,
                    "children": [],
                    "icon": "icon-caidanguanli",
                    "name": "菜单管理",
                    "spread": false,
                    "path": "/admin/menu/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "菜单管理",
                    "sort": 2
                },
                {
                    "id": 1300,
                    "parentId": 1000,
                    "children": [],
                    "icon": "icon-jiaoseguanli",
                    "name": "角色管理",
                    "spread": false,
                    "path": "/admin/role/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "角色管理",
                    "sort": 3
                },
                {
                    "id": 1400,
                    "parentId": 1000,
                    "children": [],
                    "icon": "icon-web-icon-",
                    "name": "部门管理",
                    "spread": false,
                    "path": "/admin/dept/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "部门管理",
                    "sort": 4
                },
                {
                    "id": 1500,
                    "parentId": 1000,
                    "children": [],
                    "icon": "icon-erji-zuhushouye",
                    "name": "租户管理",
                    "spread": false,
                    "path": "/admin/tenant/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "租户管理",
                    "sort": 5
                }
            ],
            "icon": "icon-quanxianguanli",
            "name": "权限管理",
            "spread": false,
            "path": "/user",
            "keepAlive": "0",
            "type": "0",
            "label": "权限管理",
            "sort": 0
        },
        {
            "id": 2000,
            "parentId": -1,
            "children": [
                {
                    "id": 2100,
                    "parentId": 2000,
                    "children": [],
                    "icon": "icon-rizhiguanli",
                    "name": "日志管理",
                    "spread": false,
                    "path": "/admin/log/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "日志管理",
                    "sort": 5
                },
                {
                    "id": 10000,
                    "parentId": 2000,
                    "children": [],
                    "icon": "icon-wenjianguanli",
                    "name": "文件管理",
                    "spread": false,
                    "path": "/admin/file/index",
                    "keepAlive": "1",
                    "type": "0",
                    "label": "文件管理",
                    "sort": 6
                },
                {
                    "id": 2200,
                    "parentId": 2000,
                    "children": [],
                    "icon": "icon-navicon-zdgl",
                    "name": "字典管理",
                    "spread": false,
                    "path": "/admin/dict/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "字典管理",
                    "sort": 6
                },
                {
                    "id": 2210,
                    "parentId": 2000,
                    "children": [],
                    "icon": "icon-canshu",
                    "name": "参数管理",
                    "spread": false,
                    "path": "/admin/param/index",
                    "keepAlive": "1",
                    "type": "0",
                    "label": "参数管理",
                    "sort": 7
                },
                {
                    "id": 2800,
                    "parentId": 2000,
                    "children": [],
                    "icon": "icon-guanwangfangwen",
                    "name": "Quartz管理",
                    "spread": false,
                    "path": "/daemon/job-manage/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "Quartz管理",
                    "sort": 8
                },
                {
                    "id": 2300,
                    "parentId": 2000,
                    "children": [],
                    "icon": "icon-weibiaoti46",
                    "name": "代码生成",
                    "spread": false,
                    "path": "/gen/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "代码生成",
                    "sort": 8
                },
                {
                    "id": 2400,
                    "parentId": 2000,
                    "children": [],
                    "icon": "icon-shouji",
                    "name": "终端管理",
                    "spread": false,
                    "path": "/admin/client/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "终端管理",
                    "sort": 9
                },
                {
                    "id": 2500,
                    "parentId": 2000,
                    "children": [],
                    "icon": "icon-miyue",
                    "name": "密钥管理",
                    "spread": false,
                    "path": "/admin/social/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "密钥管理",
                    "sort": 10
                },
                {
                    "id": 2600,
                    "parentId": 2000,
                    "children": [],
                    "icon": "icon-denglvlingpai",
                    "name": "令牌管理",
                    "spread": false,
                    "path": "/admin/token/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "令牌管理",
                    "sort": 11
                },
                {
                    "id": 2700,
                    "parentId": 2000,
                    "children": [],
                    "icon": "icon-luyou",
                    "name": "动态路由",
                    "spread": false,
                    "path": "/admin/route/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "动态路由",
                    "sort": 12
                }
            ],
            "icon": "icon-xitongguanli",
            "name": "系统管理",
            "spread": false,
            "path": "/admin",
            "keepAlive": "0",
            "type": "0",
            "label": "系统管理",
            "sort": 1
        },
        {
            "id": 3000,
            "parentId": -1,
            "children": [
                {
                    "id": 3100,
                    "parentId": 3000,
                    "children": [],
                    "icon": "icon-server",
                    "name": "服务监控",
                    "spread": false,
                    "path": "http://127.0.0.1:5001",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "服务监控",
                    "sort": 0
                },
                {
                    "id": 3110,
                    "parentId": 3000,
                    "children": [],
                    "icon": "icon-qingchuhuancun",
                    "name": "缓存监控",
                    "spread": false,
                    "path": "/monitor/redis/index",
                    "keepAlive": "1",
                    "type": "0",
                    "label": "缓存监控",
                    "sort": 1
                },
                {
                    "id": 3200,
                    "parentId": 3000,
                    "children": [],
                    "icon": "icon-wendang",
                    "name": "接口文档",
                    "spread": false,
                    "path": "http://127.0.0.1:9999/swagger-ui.html",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "接口文档",
                    "sort": 1
                },
                {
                    "id": 3500,
                    "parentId": 3000,
                    "children": [],
                    "icon": "icon-wendang",
                    "name": "文档扩展",
                    "spread": false,
                    "path": "http://127.0.0.1:9999/doc.html",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "文档扩展",
                    "sort": 2
                },
                {
                    "id": 3300,
                    "parentId": 3000,
                    "children": [],
                    "icon": "icon-gtsquanjushiwufuwuGTS",
                    "name": "事务监控",
                    "spread": false,
                    "path": "/tx/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "事务监控",
                    "sort": 5
                },
                {
                    "id": 3400,
                    "parentId": 3000,
                    "children": [],
                    "icon": "icon-online",
                    "name": "在线事务",
                    "spread": false,
                    "path": "/tx/model",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "在线事务",
                    "sort": 6
                },
                {
                    "id": 3630,
                    "parentId": 3000,
                    "children": [],
                    "icon": "icon-wendang",
                    "name": "任务日志",
                    "spread": false,
                    "path": "/daemon/execution-log/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "任务日志",
                    "sort": 7
                },
                {
                    "id": 3600,
                    "parentId": 3000,
                    "children": [],
                    "icon": "icon-guiji",
                    "name": "任务轨迹",
                    "spread": false,
                    "path": "/daemon/status-trace-log/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "任务轨迹",
                    "sort": 8
                },
                {
                    "id": 3620,
                    "parentId": 3000,
                    "children": [],
                    "icon": "icon-gtsquanjushiwufuwuGTS",
                    "name": "Quartz日志",
                    "spread": false,
                    "path": "/daemon/job-log/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "Quartz日志",
                    "sort": 8
                }
            ],
            "icon": "icon-msnui-supervise",
            "name": "系统监控",
            "spread": false,
            "path": "/daemon",
            "keepAlive": "0",
            "type": "0",
            "label": "系统监控",
            "sort": 2
        },
        {
            "id": 4000,
            "parentId": -1,
            "children": [
                {
                    "id": 4100,
                    "parentId": 4000,
                    "children": [],
                    "icon": "icon-weibiaoti13",
                    "name": "模型管理",
                    "spread": false,
                    "path": "/activiti/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "模型管理",
                    "sort": 1
                },
                {
                    "id": 4200,
                    "parentId": 4000,
                    "children": [],
                    "icon": "icon-liucheng",
                    "name": "流程管理",
                    "spread": false,
                    "path": "/activiti/process",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "流程管理",
                    "sort": 2
                },
                {
                    "id": 4300,
                    "parentId": 4000,
                    "children": [],
                    "icon": "icon-qingjia",
                    "name": "请假管理",
                    "spread": false,
                    "path": "/activiti/leave",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "请假管理",
                    "sort": 3
                },
                {
                    "id": 4400,
                    "parentId": 4000,
                    "children": [],
                    "icon": "icon-renwu",
                    "name": "待办任务",
                    "spread": false,
                    "path": "/activiti/task",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "待办任务",
                    "sort": 4
                }
            ],
            "icon": "icon-kuaisugongzuoliu_o",
            "name": "协同管理",
            "spread": false,
            "path": "/activti",
            "keepAlive": "0",
            "type": "0",
            "label": "协同管理",
            "sort": 3
        },
        {
            "id": 6000,
            "parentId": -1,
            "children": [
                {
                    "id": 6400,
                    "parentId": 6000,
                    "children": [],
                    "icon": "icon-anniu_weixincaidanlianjie",
                    "name": "菜单设置",
                    "spread": false,
                    "path": "/mp/wxmenu/index",
                    "keepAlive": "1",
                    "type": "0",
                    "label": "菜单设置",
                    "sort": 6
                },
                {
                    "id": 6500,
                    "parentId": 6000,
                    "children": [],
                    "icon": "icon-zhexiantu",
                    "name": "运营数据",
                    "spread": false,
                    "path": "/mp/wxstatistics/index",
                    "keepAlive": "1",
                    "type": "0",
                    "label": "运营数据",
                    "sort": 7
                },
                {
                    "id": 6200,
                    "parentId": 6000,
                    "children": [],
                    "icon": "icon-fensiguanli",
                    "name": "粉丝管理",
                    "spread": false,
                    "path": "/mp/wxaccountfans/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "粉丝管理",
                    "sort": 8
                },
                {
                    "id": 6300,
                    "parentId": 6000,
                    "children": [],
                    "icon": "icon-xiaoxiguanli",
                    "name": "消息管理",
                    "spread": false,
                    "path": "/mp/wxfansmsg/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "消息管理",
                    "sort": 8
                },
                {
                    "id": 6100,
                    "parentId": 6000,
                    "children": [],
                    "icon": "icon-weixincaidan",
                    "name": "账号管理",
                    "spread": false,
                    "path": "/mp/wxaccount/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "账号管理",
                    "sort": 8
                }
            ],
            "icon": "icon-gongzhonghao",
            "name": "微信管理",
            "spread": false,
            "path": "/mp",
            "keepAlive": "0",
            "type": "0",
            "label": "微信管理",
            "sort": 4
        },
        {
            "id": 5000,
            "parentId": -1,
            "children": [
                {
                    "id": 5200,
                    "parentId": 5000,
                    "children": [],
                    "icon": "icon-shouyintai",
                    "name": "收银台",
                    "spread": false,
                    "path": "/pay/cd/index",
                    "keepAlive": "1",
                    "type": "0",
                    "label": "收银台",
                    "sort": 0
                },
                {
                    "id": 5100,
                    "parentId": 5000,
                    "children": [],
                    "icon": "icon-zhifuqudaoguanli",
                    "name": "渠道管理",
                    "spread": false,
                    "path": "/pay/paychannel/index",
                    "keepAlive": "1",
                    "type": "0",
                    "label": "渠道管理",
                    "sort": 1
                },
                {
                    "id": 5300,
                    "parentId": 5000,
                    "children": [],
                    "icon": "icon-dingdan",
                    "name": "商品订单",
                    "spread": false,
                    "path": "/pay/goods/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "商品订单",
                    "sort": 2
                },
                {
                    "id": 5400,
                    "parentId": 5000,
                    "children": [],
                    "icon": "icon-zhifu",
                    "name": "支付订单",
                    "spread": false,
                    "path": "/pay/orders/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "支付订单",
                    "sort": 3
                },
                {
                    "id": 5500,
                    "parentId": 5000,
                    "children": [],
                    "icon": "icon-huitiao",
                    "name": "回调记录",
                    "spread": false,
                    "path": "/pay/notify/index",
                    "keepAlive": "0",
                    "type": "0",
                    "label": "回调记录",
                    "sort": 4
                }
            ],
            "icon": "icon-pay6zhifu",
            "name": "支付管理",
            "spread": false,
            "path": "/pay",
            "keepAlive": "1",
            "type": "0",
            "label": "支付管理",
            "sort": 4
        },
        {
            "id": 9999,
            "parentId": -1,
            "children": [],
            "icon": "icon-guanwangfangwen",
            "name": "系统官网",
            "spread": false,
            "path": "https://pig4cloud.com/#",
            "keepAlive": "0",
            "type": "0",
            "label": "系统官网",
            "sort": 9
        }
    ]
}
失败响应返回示例:

错误列表

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

本文档生成时间:2024-04-24 16:17:23