This commit is contained in:
2026-07-20 14:59:16 +08:00
parent cd1175b304
commit 77930b3232
9 changed files with 94 additions and 78 deletions

View File

@@ -1,17 +1,21 @@
<?php
declare (strict_types = 1);
declare(strict_types=1);
namespace app;
use think\App;
use think\exception\ValidateException;
use think\Validate;
use app\common\Trait\ApiResponse;
/**
* 控制器基础类
*/
abstract class BaseController
{
use ApiResponse;
/**
* Request实例
* @var \think\Request
@@ -51,8 +55,7 @@ abstract class BaseController
}
// 初始化
protected function initialize()
{}
protected function initialize() {}
/**
* 验证数据
@@ -90,5 +93,4 @@ abstract class BaseController
return $v->failException(true)->check($data);
}
}