first commit
This commit is contained in:
21
app/common/validate/system/Dictionary.php
Normal file
21
app/common/validate/system/Dictionary.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
declare (strict_types = 1);
|
||||
|
||||
namespace app\common\validate\system;
|
||||
|
||||
use app\common\model\system\Dictionary as SystemDictionary;
|
||||
use think\Validate;
|
||||
|
||||
class Dictionary extends Validate
|
||||
{
|
||||
/**
|
||||
* 定义验证规则
|
||||
* 格式:'字段名' => ['规则1','规则2'...]
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $rule = [
|
||||
'name' => 'require',
|
||||
'value' => 'require',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user