🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
~~~[api] get:auth/auth_rule/index int:status#status不传表示所有,1=查询1,2,3级 <<< success { "data": [         { "id": 1, "href": "", "name": "站点管理", "status": true, "auth_open": true, "level": 1, "icon": "icon-zhandianguanli", "pid": 0, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": "", "children": [                 { "id": 2, "href": "", "name": "权限管理", "status": true, "auth_open": true, "level": 2, "icon": "icon-quanxianguanli", "pid": 1, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": "", "children": [                         { "id": 15, "href": "auth/auth_rule/index", "name": "权限列表", "status": true, "auth_open": true, "level": 3, "icon": "", "pid": 2, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": "", "children": [                                 { "id": 19, "href": "auth/auth_rule/status", "name": "调整状态", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 15, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 },                                 { "id": 18, "href": "auth/auth_rule/update", "name": "编辑提交", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 15, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 },                                 { "id": 17, "href": "auth/auth_rule/edit", "name": "编辑页面", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 15, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 },                                 { "id": 16, "href": "auth/auth_rule/store", "name": "添加", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 15, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 }                             ]                         },                         { "id": 8, "href": "auth/auth_group/index", "name": "权限组列表", "status": true, "auth_open": true, "level": 3, "icon": "", "pid": 2, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": "", "children": [                                 { "id": 14, "href": "auth/auth_group/access\_update", "name": "分配权限提交", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 8, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 },                                 { "id": 13, "href": "auth/auth_group/access", "name": "分配权限", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 8, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 },                                 { "id": 12, "href": "auth/auth_group/status", "name": "调整状态", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 8, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 },                                 { "id": 11, "href": "auth/auth_group/update", "name": "编辑提交", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 8, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 },                                 { "id": 10, "href": "auth/auth_group/edit", "name": "编辑页面", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 8, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 },                                 { "id": 9, "href": "auth/auth_group/store", "name": "添加", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 8, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 }                             ]                         },                         { "id": 3, "href": "auth/admin/index", "name": "管理员列表", "status": true, "auth_open": true, "level": 3, "icon": "", "pid": 2, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": "", "children": [                                 { "id": 7, "href": "auth/admin/status", "name": "调整状态", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 3, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 },                                 { "id": 6, "href": "auth/admin/update", "name": "编辑提交", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 3, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 },                                 { "id": 5, "href": "auth/admin/edit", "name": "编辑页面", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 3, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 },                                 { "id": 4, "href": "auth/admin/store", "name": "添加", "status": false, "auth_open": true, "level": 4, "icon": "", "pid": 3, "sort": 1, "created_at": "2020-02-19 14:47:03", "updated_at": ""                                 }                             ]                         }                     ]                 }             ]         }     ], "code": 8888, "msg": "成功!" } ~~~ ## **请求参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |status|否|int|status不传表示所有,1=查询1,2,3级| ## **成功发回参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |code|是|int|表示请求后的状态| |msg|是|string|表示请求提示信息| |data|是|object|返回数据| ## **data数据说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |id|是|int|表示权限ID| |href|否|string|表示路由地址| |name|是|string|表示权限名称| |status|否|Boolean|侧边栏显示状态:false=隐藏,true=显示| |auth_open|否|Boolean|是否验证权限:false=否,true=是| |level|否|int|表示级别| |icon|否|string|图标名称| |pid|是|int|父级ID| |sort|否|int|排序| |created_at|否|string|创建时间| |updated_at|否|string|更新时间|