🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
#### 列表 ~~~[api] get:/admin/dealer/permission/index string:search#搜索关键词 number:p=1#当前页数 number:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-08-24 22:35:05", "data": [ { "id": 1, "menu_id": 1, "title": "首页-登录", "module": "dealer", "controller": "index/index", "name": "dealer/index/index/login", "condition": "", "icon": "", "sort": 0, "is_menu_show": 0, "status": 1, "created_at": "2018-08-24 22:31:57", "updated_at": "2018-08-24 22:31:57", "menu": { "id": 1, "parent_id": 0, "name": "首页", "module": "index", "icon": "", "sort": 0, "status": 1, "created_at": "2018-08-24 22:18:50", "updated_at": "2018-08-24 22:19:42", "status_text": "正常" }, "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/admin/dealer/permission/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-08-24 22:34:52", "data": { "id": 1, "menu_id": 1, "title": "首页-登录", "module": "dealer", "controller": "index/index", "name": "dealer/index/index/login", "condition": "", "icon": "", "sort": 0, "is_menu_show": 0, "status": 1, "created_at": "2018-08-24 22:31:57", "updated_at": "2018-08-24 22:31:57", "status_text": "正常" } } ~~~ #### 创建 ~~~[api] post:/admin/dealer/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/dealer/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/dealer/permission/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-10 18:05:44", "data": [] } ~~~