企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
#### 列表 ~~~[api] get:/admin/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:/admin/dealer/role/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-08-26 14:11:16", "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": "正常" } } ~~~ #### 创建 > 创建商家时将默认创建商家同名角色并分配 ~~~[api] post:/admin/dealer/role/create *number:dealer_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:/admin/dealer/role/update/id/:id number:dealer_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:/admin/dealer/role/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-10 18:05:44", "data": [] } ~~~