feat: 完善curd生成控制器时,自动开启关联查询配置

This commit is contained in:
augushong
2025-03-22 17:58:24 +08:00
parent 103998d8ba
commit 4adcc39eda
3 changed files with 14 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ use think\App;
class {{controllerName}} extends AdminController
{
{{relationSearch}}
use \app\admin\traits\Curd;
public function __construct(App $app)

View File

@@ -0,0 +1,5 @@
/**
* 是否关联查询.
* @var bool
*/
protected $relationSearch = true;