<?php

namespace app\api\validate;

class BusinessValidate extends BaseValidate
{
    protected $rule =   [
        'token'=>'require',
        'name'  => 'require',
        'type'   => 'require',
        'scale'=>'require',
        'established'=>'require',
        'province'=>'require',
        'city'=>'require',
        'area'=>'require',
        'web_url'=>'require',
        'main_business'=>'require',
        'about_business'=>'require',
        'contacts_name'=>'require',
        'job'=>'require',
        'contacts_phone'=>'require',
        'contacts_email'=>'require',
        'business_qualification_url_id' => 'require',
        'business_industry_url_id' => 'require',
        'business_project_url_id' => 'require',
        'business_logo_url_id' => 'require',
        'more_url_id' => 'require',


        'frxm' => 'require',
        'qymc' => 'require',
        'qydz' => 'require',
        'qydm' => 'require',
        'frsfz' => 'idCard',
    ];

    protected $message  =   [
        'frxm.require' => '法人姓名不能为空',
        'qymc.require'   => '企业名称不能为空',
        'qydm.require'  => '机构代码不能为空',
        'qydz.require'  => '企业地址不能为空',
        'frsfz.idCard'  => '法人身份证格式错误',

    ];
}