骏飞影业微信小程序API
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.
 
 
 
 
 

61 lines
1.9 KiB

<?php
/**
* +----------------------------------------------------------------------
* | 团队模块验证器
* +----------------------------------------------------------------------
* .::::.
* .::::::::. | AUTHOR: siyu
* ::::::::::: | EMAIL: 407593529@qq.com
* ..:::::::::::' | DATETIME: 2021/06/23
* '::::::::::::'
* .::::::::::
* '::::::::::::::..
* ..::::::::::::.
* ``::::::::::::::::
* ::::``:::::::::' .:::.
* ::::' ':::::' .::::::::.
* .::::' :::: .:::::::'::::.
* .:::' ::::: .:::::::::' ':::::.
* .::' :::::.:::::::::' ':::::.
* .::' ::::::::::::::' ``::::.
* ...::: ::::::::::::' ``::.
* ```` ':. ':::::::::' ::::..
* '.:::::' ':'````..
* +----------------------------------------------------------------------
*/
namespace app\admin\validate;
use think\Validate;
class Team extends Validate
{
protected $rule = [
'sort|排序' => [
'require' => 'require',
'max' => '8',
'number' => 'number',
],
'status|状态' => [
'require' => 'require',
'max' => '1',
],
'cate_id|栏目' => [
'require' => 'require',
],
'title|标题' => [
'require' => 'require',
],
'hits|点击次数' => [
'number' => 'number',
],
'template|模板' => [
'max' => '30',
],
'area|区域' => [
'max' => '4',
],
'sex|性别' => [
'max' => '4',
]
];
}