🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
#### 列表 ~~~[api] get:/admin/admin/permission/index string:search#搜索关键词 number:p=1#当前页数 number:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-07-14 18:16:14", "data": [ { "id": 1, "menu_id": 1, "title": "仪表盘", "module": "index", "controller": "dashboard", "name": "admin/dashboard/index", "condition": "", "icon": "", "sort": 0, "is_menu_show": 1, "status": 1, "created_at": "2018-07-15 23:12:57", "updated_at": "2018-07-15 23:12:57", "menu": { "id": 15, "parent_id": 0, "name": "模板商品管理", "module": "admin/template", "icon": "", "sort": 0, "status": 1, "created_at": "2016-01-01 00:00:00", "updated_at": "2016-01-01 00:00:00", "status_text": "正常" }, "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/admin/admin/permission/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-07-15 23:44:08", "data": { "id": 1, "menu_id": 1, "title": "仪表盘", "module": "index", "controller": "dashboard", "name": "admin/dashboard/index", "condition": "", "icon": "", "sort": 0, "is_menu_show": 1, "status": 1, "created_at": "2018-07-15 23:12:57", "updated_at": "2018-07-15 23:12:57", "status_text": "正常" } } ~~~ #### 创建 ~~~[api] post:/admin/admin/permission/create *number:menu_id#菜单ID *string:title#标题 *string:module#模块 *string:controller#控制器 *string:name#规则唯一标识 string:condition#规则表达式 string:icon#图标 number:sort=0#排序 number:is_menu_show=0#是否菜单显示 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-07-14 18:34:00", "data": [] } ~~~ #### 更新 ~~~[api] post:/admin/admin/permission/update/id/:id number:menu_id#菜单ID string:title#标题 string:module#模块 string:controller#控制器 string:name#规则唯一标识 string:condition#规则表达式 string:icon#图标 number:sort=0#排序 number:is_menu_show=0#是否菜单显示 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-07-14 18:34:00", "data": [] } ~~~ #### 删除 ~~~[api] post:/admin/admin/permission/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-10 18:05:44", "data": [] } ~~~