<?php
namespace app\validate;

use think\Validate;

class DownloadValidate extends Validate
{
    protected $rule = [
        'title' => 'require|length:1,60',
        'file' => 'require',
        'visible' => 'require|in:0,1',
    ];
    protected $message = [
        'title.require' => '标题不能为空',
        'file.require' => '文件必传',
        'visible.require' => '状态必须设置',
        'visible.in' => '状态参数错误',
    ];

}