PacificGas.php 2.6 KB
<?php
namespace app\serviceapi\validate;
use app\common\validate\BaseValidate;

/**
 * 功能描述 太平洋燃气险通用验证规则
 * Class Gas
 * @package app\commapi\validate
 * Date: 2020/7/27
 * Time: 15:40
 * @author nyq
 */
class PacificGas extends BaseValidate
{
    protected $rule = [
        "plcPlanCode" => "require",
        "plcStartDate" => "require",
        "plcEndDate" => "require",
        //投保人
        'apltName' => 'require',
        'apltCretType'=>'require',
        'apltCretCode'=>'require',
        'apltMobile'=>'require',
        'apltAddress'=>'require',
        //被保人信息
        'isrdName'=>'require',
        'isrdCretType'=>'require',
        'isrdCretCode'=>'require',
        'isrdMobile'=>'require',
        'isrdAddress'=>'require',
        //支付方式
        'paymentWay'=>'require',
        //接受信息方式
        'elcMsgFlag'=>'require',
        'elcEmlFlag'=>'require',
        //保单查询
        'plcApplyNo'=>'require',
        'plcId'=>'require',
    ];
    protected $message = [
        "plcPlanCode.require" => "承保方案代码必传",
        "plcStartDate.require" => "保险起期必传",
        "plcEndDate.require" => "保险止期必传",
        //投保人
        'apltName.require' => '投保人姓名必传',
        'apltCretType.require' => '投保人证件类型必传',
        'apltCretCode.require' => '投保人证件号必传',
        "apltMobile.require" => "投保人手机号必传",
        "apltAddress.require"=>"投保人邮箱必传",
        //被保人
        "isrdName.require" => "被保人姓名必传",
        "isrdCretType.require" => "被保人证件类型必传",
        "isrdCretCode.require" => "被保人证件号必传",
        "isrdMobile.require" => "被保人手机号必传",
        "isrdAddress.require"=>"被保人地址必传",
        //支付台方式
        "paymentWay.require" => "支付方式必传",

        "elcMsgFlag.require" => "是否接受手机信息必传",
        "elcEmlFlag.require" => "是否接受邮件信息必传",
        //保单查询
        "plcId.require" => "保单ID必传",



    ];
    protected $scene = [
        //承保
        "get_PolicyApply"=>["plcPlanCode","plcStartDate","plcEndDate","apltName","apltCretType","apltCretCode","apltMobile","apltAddress","isrdName","isrdCretType","isrdCretCode","isrdMobile","isrdAddress","paymentWay"],
        "get_PolicyQuery"=>["plcId"],
        "get_Surrender"=>["plcApplyNo","plcBusinessNo"],
        "get_InsurancePolicyDown"=>["policyNo"],
        "get_invoiceDown"=>["policyNo"]

    ];

}