<?php

namespace app\validate\blue;

use think\Validate;

class ExpertValidate extends Validate
{



    protected $rule = [
        "truenname"     => "require",
        "idcard"        => "require|idCard",
        "mobile"        => "require|mobile",
        "city"          => "require",
        "city_path"     => "require",
        "sex"           => "require",
        "married"       => "require",
        "child"         => "require",
        "pet"           => "require",
    ];


    protected $message = [
        "truenname.require"     => "请输入姓名",
        "idcard.require"        => "请输入身份证号",
        "idcard.idCard"         => "身份证号有误",
        "mobile.require"        => "请输入手机号码",
        "mobile.mobile"         => "手机号有误",
        "city.require"          => "请选择城市",
        "city_path.require"     => "请选择城市",
        "pet.require"           => "请选择宠物",
    ];
    protected $scene = [
        'add'  =>  ['truenname','idcard','mobile','city','city_path','sex','married','child','pet'],
    ];

}