<?php

namespace app\common\validate;

use think\Validate;

class Comjobs extends Validate
{
    protected $rule = [
        'title'     => 'require',
        'cateid'    => 'require',
        'province'  => 'require',
        'city'      => 'require',
        'district'  => 'require',
        'agegroup'  => 'require',
        'enddate'   => 'require',
        'community' => 'require',
    ];

    protected $message = [
        'title.require'     => "招聘标题不能为空",
        'cateid.require'    => "岗位类型不能为空",
        'province.require'  => "工作地点不能为空",
        'city.require'      => "工作地点不能为空",
        'district.require'  => "工作地点不能为空",
        'agegroup.require'  => "招工年龄不能为空",
        'enddate.require'   => "截止日期不能为空",
        'community.require' => "社区不能为空",
    ];

}