初始化代码
This commit is contained in:
21
app/agent/validate/Cardauth2ArticleValidate.php
Normal file
21
app/agent/validate/Cardauth2ArticleValidate.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace app\agent\validate;
|
||||
|
||||
|
||||
use think\Validate;
|
||||
|
||||
class Cardauth2ArticleValidate extends Validate
|
||||
{
|
||||
protected $rule = [
|
||||
'modular_id' => 'require|number|gt:0',
|
||||
'number|获客文章数量' => 'require|integer|egt:0',
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
'create' => ['number', 'modular_id'],
|
||||
];
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user