🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
#### 列表 ~~~[api] get:/dealer/dealer/role/index string:search#搜索关键词 number:p=1#当前页数 number:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-08-26 14:11:34", "data": [ { "id": 1, "dealer_id": 1, "name": "商家管理员", "permissions": "1", "description": "", "status": 1, "created_at": "2018-08-26 14:10:10", "updated_at": "2018-08-26 14:10:10", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/dealer/dealer/role/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-09-03 21:37:06", "data": { "id": 2, "dealer_id": 10, "name": "dealer9", "permissions": "1", "description": "dealer9默认角色", "is_default": 1, "status": 1, "created_at": "2018-08-26 22:54:50", "updated_at": "2018-08-26 22:54:50", "status_text": "正常" } } ~~~ #### 创建 ~~~[api] post:/dealer/dealer/role/create *string:name#名称 *string:permissions#权限(权限ID集合,使用逗号拼接) string:description#描述 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-07-14 18:34:00", "data": [] } ~~~ #### 更新 ~~~[api] post:/dealer/dealer/role/update/id/:id string:name#名称 string:permissions#权限(权限ID集合,使用逗号拼接) string:description#描述 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-07-14 18:34:00", "data": [] } ~~~ #### 删除 ~~~[api] post:/dealer/dealer/role/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-10 18:05:44", "data": [] } ~~~