开始引入curd

This commit is contained in:
2022-04-20 11:24:54 +08:00
parent 45f923b652
commit c2b7671f7e
31 changed files with 1752 additions and 262 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace {{controllerNamespace}};
use app\common\controller\AdminController;
use EasyAdmin\annotation\ControllerAnnotation;
use EasyAdmin\annotation\NodeAnotation;
use think\App;
/**
* @ControllerAnnotation(title="{{controllerAnnotation}}")
*/
class {{controllerName}} extends AdminController
{
use \app\admin\traits\Curd;
public function __construct(App $app)
{
parent::__construct($app);
$this->model = new {{modelFilename}}();
{{selectList}}
}
{{indexMethod}}
}