<?php

namespace app\mobile\validate;

use think\Validate;

class ResumeValidate extends Validate
{
    protected $rule = [
        'name'   => 'require',
        'mobile' => 'require|mobile',
        'gender' => 'require',
        'age'    => 'require|number',
    ];

    protected $message = [
        'name'   => '请选择姓名',
        'mobile' => '手机号格式不对',
        'gender' => '请选择性别',
        'age'    => '年龄格式不对',
    ];
}