ResumeValidate.php 1.9 KB
<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小夏 < 449134904@qq.com>
// +----------------------------------------------------------------------
namespace app\portal\validate;

use think\Validate;

class ResumeValidate extends Validate
{
    protected $rule = [
        'wx' => 'require',
        'age' => 'require|number',
        'sex' => 'require',
        'education' => 'require',
        'address' => 'require|max:255',
        'free_time' => 'require',
        'select_id' => 'require',
        'skill' => 'require',
        'experience' => 'require|max:500',
        'just' => 'require',
        'back' => 'require',

    ];
    protected $message = [
        'wx.require' => '微信号不能为空!',
        'age.require' => '年龄不能为空!',
        'age.number' => '请输入有效年龄!',
        'sex.require' => '性别不能为空!',
        'education.require' => '学历不能为空!',
        'address.require' => '居住地址不能为空!',
        'address.max' => '居住地址过长!',
        'free_time.require' => '赋闲时间不能为空!',
        'select_id.require' => '求职意向不能为空!',
        'skill.require' => '职业技能不能为空!',
        'experience.require' => '工作经验不能为空!',
        'experience.max' => '工作经验过长!',
        'just.require' => '身份证正面照不能为空!',
        'back.require' => '身份证反面照不能为空!',
    ];

    protected $scene = [
    ];

}