<?php

namespace app\common\validate;

use think\Validate;

class ReportFactory extends Validate
{
    protected $rule = [
		'idnumber'		=>  'require|unique:report_factory',
        'mobile'		=>  'require|mobile'
    ];
	
	protected $message  =   [
		'idnumber.require'	=> '工厂编号不能为空',
		'idnumber.unique'	=> '工厂编号不能重复',
		
        'mobile.require'	=> '手机号不能为空',
		'mobile.mobile'		=> '手机号格式不正确'
    ];

}