💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
#### 列表 ~~~[api] get:/admin/admin/role/index string:search#搜索关键词 number:p=1#当前页数 number:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-07-15 19:02:31", "data": [ { "id": 1, "name": "网站管理员", "permissions": "1", "description": "", "status": 1, "created_at": "2018-07-15 18:46:25", "updated_at": "2018-07-15 18:46:25", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/admin/admin/role/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-07-15 19:02:55", "data": { "id": 1, "name": "网站管理员", "permissions": "1", "description": "", "status": 1, "created_at": "2018-07-15 18:46:25", "updated_at": "2018-07-15 18:46:25", "status_text": "正常" } } ~~~ #### 创建 ~~~[api] post:/admin/admin/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:/admin/admin/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:/admin/admin/role/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-10 18:05:44", "data": [] } ~~~