ResumeValidate.php
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?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 = [
];
}