<?php

namespace app\common\validate;

use think\Validate;

class DemandReport extends Validate
{
    protected $rule = [
        'realname'   => 'require',
        'mobile'     => 'require',
        'idcard'     => 'require|idCard',
        'arrivetime' => 'require',
    ];

    protected $message = [
        'realname.require'   => "姓名不能为空",
        'mobile.require'     => "电话不能为空",
        'idcard.require'     => "身份证号不能为空",
        'idcard.idCard'      => "身份证号格式错误",
        'arrivetime.require' => "预计到达时间不能为空",
    ];

}