<?php

namespace app\api\validate;

class SchoolValidate extends BaseValidate
{
    protected $rule =   [
        'token'=>'require',
        'name'  => 'require',
        'type'   => 'require',
        'province'=>'require',
        'city'=>'require',
        'area'=>'require',
        'web_url'=>'require',
        'contacts_name'=>'require',
        'job'=>'require',
        'contacts_phone'=>'require',
        'contacts_email'=>'require',
        'school_qualification_url_id' => 'require',
        'teacher_qualification_url_id' => 'require',
        'agreement_url_id' => 'require',
        'more_url_id' => 'require',
    ];

//    protected $message  =   [
//        'name.require' => '名称必须',
//        'mobile.require'   => '手机号不能为空',
//        'mobile.mobile'  => '手机号格式不正确',
//        'password.require'   => '密码必须',
//        'code.require'   => '验证码必须',
//        'token.require'   => 'token必须',
//        'str.require'   => '必填项不能为空',
//        'confirm_password.checkPasswordEqual' => '两次输入的密码不一致'
//    ];
}