mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 23:42:48 +08:00
35 lines
760 B
PHP
35 lines
760 B
PHP
<?php
|
|
|
|
namespace base\admin\controller\system;
|
|
|
|
use app\admin\service\annotation\ControllerAnnotation;
|
|
use app\admin\service\annotation\NodeAnotation;
|
|
use app\admin\service\NodeService;
|
|
use app\admin\service\TriggerService;
|
|
use app\common\controller\AdminController;
|
|
use think\App;
|
|
|
|
/**
|
|
* @ControllerAnnotation(title="系统节点管理")
|
|
* Class Node
|
|
*/
|
|
class NodeBase extends AdminController
|
|
{
|
|
use \app\admin\traits\Curd;
|
|
|
|
public function __construct(App $app)
|
|
{
|
|
parent::__construct($app);
|
|
}
|
|
|
|
/**
|
|
* @NodeAnotation(title="列表")
|
|
*/
|
|
public function index()
|
|
{
|
|
$module_list = (new NodeService())->getNodeTree();
|
|
$this->assign('module_list', $module_list);
|
|
return $this->fetch();
|
|
}
|
|
}
|