<?php
/**
* @author 龙虾 <15108148@qq.com>
* @version 2.0 2020-08-06
* @copyright 睿谷信息 <www.rgxx.com>
*/
namespace app\admin\validate;
use think\Validate;

class Site extends Validate
{
	
	protected $rule = [
		'title|站点名称' => 'unique:site|require|chsAlpha|min:2',
		'alias|站点别名'   => 'unique:site|require|alpha|min:2',
		'pctemplate|PC模板文件夹'   => 'require|alphaNum|min:2',
		'pchtml|PC模板HTML文件夹'   => 'require|alphaNum|min:2',
		'waptemplate|WAP模板文件夹'   => 'require|alphaNum|min:2',
		'waphtml|WAP模板HTML文件夹'   => 'require|alphaNum|min:2',
		'torder|排序'     => '>:0|integer'
	];
}