first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Administrator
|
||||
* Date: 2020/4/20
|
||||
* Time: 20:10
|
||||
*/
|
||||
|
||||
namespace app\api\validate;
|
||||
|
||||
|
||||
class MajorValidate extends BaseValidate
|
||||
{
|
||||
protected $rule = [
|
||||
'title' => 'require|max:20',
|
||||
'page' => 'require|isPostInt',
|
||||
'userPro' => 'require|isPostInt',
|
||||
'subType' => 'require',
|
||||
'batch' => 'require',
|
||||
|
||||
|
||||
];
|
||||
protected $message = [
|
||||
'title.max' => '标题长度不能大于20',
|
||||
'page.isPostInt' => '页码必须是正整数',
|
||||
'userPro.isPostInt' => '用户所在省份code必须是正整数'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user