多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
~~~[api] get:auth/auth_group/access *int:id#权限组id <<< success { "data": { "rule_arr": [             { "id": 1, "name": "站点管理", "pid": 0, "children": [                     { "id": 2, "name": "权限管理", "pid": 1, "children": [                             { "id": 3, "name": "管理员列表", "pid": 2, "children": [                                     { "id": 4, "name": "添加", "pid": 3                                     },                                     { "id": 5, "name": "编辑页面", "pid": 3                                     },                                     { "id": 6, "name": "编辑提交", "pid": 3                                     },                                     { "id": 7, "name": "调整状态", "pid": 3                                     }                                 ]                             },                             { "id": 8, "name": "权限组列表", "pid": 2, "children": [                                     { "id": 9, "name": "添加", "pid": 8                                     },                                     { "id": 10, "name": "编辑页面", "pid": 8                                     },                                     { "id": 11, "name": "编辑提交", "pid": 8                                     },                                     { "id": 12, "name": "调整状态", "pid": 8                                     },                                     { "id": 13, "name": "分配权限", "pid": 8                                     },                                     { "id": 14, "name": "分配权限提交", "pid": 8                                     }                                 ]                             },                             { "id": 15, "name": "权限列表", "pid": 2, "children": [                                     { "id": 16, "name": "添加", "pid": 15                                     },                                     { "id": 17, "name": "编辑页面", "pid": 15                                     },                                     { "id": 18, "name": "编辑提交", "pid": 15                                     },                                     { "id": 19, "name": "调整状态", "pid": 15                                     }                                 ]                             }                         ]                     }                 ]             }         ], "defkeys": [4,5,6,7 ], "id": "1"     }, "code": 8888, "msg": "成功!" } ~~~ ## **请求参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |id|是|int|权限组id| ## **成功发回参数说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |code|是|int|表示请求后的状态| |msg|是|string|表示请求提示信息| |data|是|object|返回数据| ## **data数据说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |id|是|int|权限组ID| |defkeys|是|array|当前拥有权限id组成的数组| |rule_arr|是|array|权限列表| ## **rule_arr数据说明** |参数|是否必须|参数类型|说明| |-|-|-|-| |id|是|int|权限ID| |name|是|string|权限名称| |pid|是|int|上级id| |children|是|array|下级数据|