zzwy2/app/validate/HistoryInfo.php

19 lines
490 B
PHP
Executable File

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