创建模型验证器,验证数据正确性

This commit is contained in:
2026-04-16 14:52:13 +08:00
parent 7aaa66d2dc
commit 15fdd3ba57
22 changed files with 324 additions and 9 deletions

View File

@@ -14,7 +14,9 @@ class DepositOrder extends Backend
{
protected ?object $model = null;
protected bool $modelValidate = false;
protected bool $modelValidate = true;
protected bool $modelSceneValidate = true;
protected string|array $quickSearchField = ['id', 'order_no', 'pay_channel', 'remark'];

View File

@@ -14,7 +14,9 @@ class WithdrawOrder extends Backend
{
protected ?object $model = null;
protected bool $modelValidate = false;
protected bool $modelValidate = true;
protected bool $modelSceneValidate = true;
protected string|array $quickSearchField = ['id', 'order_no', 'remark'];