chaoyu/app/validate/HistoryInfo.php

19 lines
464 B
PHP
Executable File

<?php
namespace app\validate;
use think\Validate;
class HistoryInfo extends Validate
{
protected $rule = [
'title' => 'require|length:1,200',
'visible' => 'require|in:0,1',
];
protected $message = [
'title.require' => '标题不能为空',
'name.length' => '标题长度限制为200个字符以内',
'visible.require' => '历程事例状态必须设置',
'visible.in' => '状态参数错误',
];
}