招标
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
965 B

<?php
/**
*
* Test.php
* User: ChenLong
* DateTime: 2020-11-25 17:38:39
*/
namespace app\common\validate;
use app\common\BaseValidate;
/**
* Class Test
* @package app\common\validate\Test
* @author chenlong <vip_chenlong@163.com>
*/
class Test extends BaseValidate
{
protected $rule = [
'id|测试表' => 'require|number',
'title|标题' => 'require',
'cover|封面' => 'require',
'show_images|展示图' => 'require',
'intro|简介' => 'require',
'status|状态' => 'require|number|in:1,2',
'administrators_id|管理员' => 'require|number',
'pid|上级' => 'require|number',
'content|详情' => 'require',
];
protected $scene = [
'add' => ['title', 'cover', 'show_images', 'intro', 'status', 'administrators_id', 'pid', 'content'],
'edit' => ['id', 'title', 'cover', 'show_images', 'intro', 'status', 'administrators_id', 'pid', 'content'],
];
}