<?php

namespace app\mobile\validate;

use think\Validate;

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

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