<?php

namespace app\common\validate;

use think\Validate;

class Demand extends Validate
{
    protected $rule = [
        'title'			=>  'require',
		'cateid'		=>  'require',
		'province'		=>  'require',
		'city'			=>  'require',
		'district'		=>  'require',
		'agegroup'		=>  'require',
		'tags'			=>  'require',
		'enddate'		=>  'require'
    ];
	
	protected $message  =   [
		'title.require'			=> "订单标题不能为空",
		'cateid.require'		=> "岗位类型不能为空",
		'province.require'		=> "工作地点不能为空",
		'city.require'			=> "工作地点不能为空",
		'district.require'		=> "工作地点不能为空",
		'agegroup.require'		=> "招工年龄不能为空",
		'tags.require'			=> "招聘标签不能为空",
		'enddate.require'		=> "截止日期不能为空"
    ];

}