|
@@ -128,25 +128,6 @@ class Menu extends Controller
|
|
|
return $this->success([], '删除成功');
|
|
return $this->success([], '删除成功');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * @api {get} /admin/menu/all 全部菜单
|
|
|
|
|
- * @apiGroup 菜单管理
|
|
|
|
|
- *
|
|
|
|
|
- * @apiUse result
|
|
|
|
|
- * @apiUse header
|
|
|
|
|
- * @apiVersion 1.0.0
|
|
|
|
|
- *
|
|
|
|
|
- * @apiSuccess (data) {Object[]} data
|
|
|
|
|
- * @apiSuccess (data) {int} data.id 菜单ID
|
|
|
|
|
- * @apiSuccess (data) {int} data.parent_id 父级菜单ID
|
|
|
|
|
- * @apiSuccess (data) {string} data.title 菜单名称
|
|
|
|
|
- * @apiSuccess (data) {string} data.icon 菜单图标
|
|
|
|
|
- * @apiSuccess (data) {string} data.uri 菜单链接地址/路由
|
|
|
|
|
- * @apiSuccess (data) {string} data.type 类型 1-菜单 2-按钮
|
|
|
|
|
- * @apiSuccess (data) {string} data.status 状态 1-显示 2-隐藏
|
|
|
|
|
- * @apiSuccess (data) {int} data.sort 排序值(越小越靠前)
|
|
|
|
|
- *
|
|
|
|
|
- */
|
|
|
|
|
public function all(): JsonResponse
|
|
public function all(): JsonResponse
|
|
|
{
|
|
{
|
|
|
$result = MenuService::findAll();
|
|
$result = MenuService::findAll();
|