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

class Cmsfields extends Validate
{
	
	protected $rule = [
		'title|字段名称'        => 'require|min:2',
		'name|字段名'         => 'require|alphaNum|unique:cmsfields,cmsmodels_id^name|min:2',
		'status|字段开关'       => 'in:0,1',
		'torder|排序'            => '>:0|integer'
	];
}