💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
#### 列表 ~~~[api] get:/admin/admin/menu/index string:search#搜索关键词 number:parentId=0#父ID number:p=1#当前页数 number:ps=20#分页大小 <<< success { "code": 1, "msg": "", "time": "2018-07-15 13:05:44", "data": [ { "id": 1, "parent_id": 0, "name": "首页", "module": "index", "icon": "home", "sort": 0, "status": 1, "created_at": "2018-07-15 13:03:19", "updated_at": "2018-07-15 13:04:57", "status_text": "正常" } ], "_meta": { "totalCount": 1, "pageCount": 1, "currentPage": 1, "perPage": 20 } } ~~~ #### 详情 ~~~[api] get:/admin/admin/menu/retrieve/id/:id <<< success { "code": 1, "msg": "", "time": "2018-07-15 13:05:24", "data": { "id": 1, "parent_id": 0, "name": "首页", "module": "index", "icon": "home", "sort": 0, "status": 1, "created_at": "2018-07-15 13:03:19", "updated_at": "2018-07-15 13:04:57", "status_text": "正常" } } ~~~ #### 创建 ~~~[api] post:/admin/admin/menu/create *number:parent_id=0#父ID *string:name#名称 *string:module#模块 string:icon#图标 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-07-14 18:34:00", "data": [] } ~~~ #### 更新 ~~~[api] post:/admin/admin/menu/update/id/:id number:parent_id=0#父ID string:name#名称 string:module#模块 string:icon#图标 number:sort=0#排序 number:status=1#状态,0=>禁用,1=>启用 <<< success { "code": 1, "msg": "success", "time": "2018-07-14 18:34:00", "data": [] } ~~~ #### 删除 ~~~[api] post:/admin/admin/menu/delete/id/:id <<< success { "code": 1, "msg": "success", "time": "2018-01-10 18:05:44", "data": [] } ~~~