创建模型验证器,验证数据正确性
This commit is contained in:
@@ -26,6 +26,8 @@ class User extends Backend
|
||||
|
||||
protected string|array $quickSearchField = ['id', 'username', 'phone'];
|
||||
|
||||
protected bool $modelSceneValidate = true;
|
||||
|
||||
protected function initController(WebmanRequest $request): ?Response
|
||||
{
|
||||
$this->model = new \app\common\model\User();
|
||||
|
||||
Reference in New Issue
Block a user