<?php

namespace App\Http\Requests\Company\Promoter;

use App\Http\Requests\BaseRequest;
use Illuminate\Validation\Rule;

/**
 * 推广员配置接口验证
 * @author 唐远望
 * @version 1.0
 * @date 2025-09-03
 * 
 */
class Configuration extends BaseRequest
{
    /**
     * 获取应用于请求的规则
     *
     * @return array
     */
    public function rules()
    {
        // 返回结果
        $rules =      [
            'name'                 => 'required',
            'id'                => 'required|integer|gt:0',
            'status'            => 'required|integer|in:0,1',
            'page'              => 'integer|min:1',
            'limit'             => 'integer|min:1',
            'code_name'         => 'required|string',
            'application_materials'         => 'required|array',
            'application_materials.fixed_parameters'         => 'required|array',
            'application_materials.fixed_parameters.full_name'         => 'required|array', //姓名参数
            'application_materials.fixed_parameters.full_name.is_required'         => 'required|integer|in:0,1', //姓名 是否必填 0=关闭 1=开启
            'application_materials.fixed_parameters.full_name.status'         => 'required|integer|in:0,1', //姓名 状态0=关闭 1=开启
            'application_materials.fixed_parameters.mobile_phone'         => 'required|array', //手机号码参数
            'application_materials.fixed_parameters.mobile_phone.is_required'         => 'required|integer|in:0,1', //手机号码 是否必填 0=关闭 1=开启
            'application_materials.fixed_parameters.mobile_phone.status'         => 'required|integer|in:0,1', //手机号码 状态0=关闭 1=开启
            'application_materials.fixed_parameters.email'         => 'required|array', //邮箱参数
            'application_materials.fixed_parameters.email.is_required'         => 'required|integer|in:0,1', //邮箱参数 是否必填 0=关闭 1=开启
            'application_materials.fixed_parameters.email.status'         => 'required|integer|in:0,1', //邮箱参数 状态0=关闭 1=开启
            'application_materials.fixed_parameters.city'         => 'required|array', //城市参数 
            'application_materials.fixed_parameters.city.is_required'         => 'required|integer|in:0,1', //城市参数 是否必填 0=关闭 1=开启
            'application_materials.fixed_parameters.city.status'         => 'required|integer|in:0,1', //城市参数 状态0=关闭 1=开启
            'application_materials.fixed_parameters.company_name'         => 'required|array', //公司名称参数
            'application_materials.fixed_parameters.company_name.is_required'         => 'required|integer|in:0,1', //公司名称参数 是否必填 0=关闭 1=开启
            'application_materials.fixed_parameters.company_name.status'         => 'required|integer|in:0,1', //公司名称参数 状态0=关闭 1=开启
            'application_switch_status'         => 'required|integer|in:0,1', //推广员开关 0=关闭 1=开启
            'application_requirements'         => 'required|array', //推广员申请条件
            'application_requirements.conditional_type'         => 'required|integer|in:1,2,3', //推广员申请条件类型 1=满足任一勾选条件 2=需同时满足勾选条件 3=无条件门槛
            'application_requirements.product_list_status'         => 'required|integer|in:0,1', //购买指定商品 0=关闭 1=开启
            'application_requirements.consumption_frequency_status'         => 'required|integer|in:0,1', //消费频率参数 状态0=关闭 1=开启
            'application_requirements.consumption_amount_status'         => 'required|integer|in:0,1', //消费金额参数 状态0=关闭 1=开启
            'application_requirements.identity_label_status'         => 'required|integer|in:0,1', //身份标签参数 状态0=关闭 1=开启
            'application_requirements.is_review'         => 'required|integer|in:0,1', //是否需要审核 0=不需要 1=需要
            'application_requirements.introduction'         => 'required|string', //申请须知
            'application_domestic_user'         => 'required|array', //国内用户定义配置
            'application_domestic_user.new_user_definition'         => 'required|array', //新用户定义
            'application_domestic_user.new_user_definition.successful_type'         => 'required|string', //拉新成功定义 1=注册登录小程序 2=添加企微客服
            'application_domestic_user.new_user_definition.other_conditions_type'         => 'nullable|string', //新用户定义其他条件 1=企微客户状态为正常未流失 2=客户已入企微群且未退群
            'application_domestic_user.effective_customer_definition'         => 'required|array', //有效客户定义参数
            'application_domestic_user.effective_customer_definition.mini_register_and_login_status'         => 'required|integer|in:0,1', //注册登录小程序状态 状态0=关闭 1=开启
            'application_domestic_user.effective_customer_definition.add_wecom_customer_service_status'         => 'required|integer|in:0,1', //添加企微客服 状态0=关闭 1=开启
            'application_domestic_user.effective_customer_definition.customer_churn_status'         => 'required|integer|in:0,1', //企微客户状态为正常未流失状态 0=关闭 1=开启
            'application_domestic_user.effective_customer_definition.exit_wechat_group_status'         => 'required|integer|in:0,1', //客户已入企微群且未退群 状态0=关闭 1=开启
            'application_foreign_user'         => 'required|array', //国外用户定义配置
            'application_foreign_user.new_user_definition'         => 'required|array', //新用户定义
            'application_foreign_user.new_user_definition.successful_type'         => 'required|integer', //拉新成功定义类型 1=注册登录小程序 2=添加Facebook客服
            'application_foreign_user.effective_customer_definition'         => 'required|array', //有效客户定义参数
            'application_foreign_user.effective_customer_definition.mini_register_and_login_status'         => 'required|integer|in:0,1', //注册登录小程序状态 状态0=关闭 1=开启
            'application_foreign_user.effective_customer_definition.add_facebook_customer_service_status'         => 'required|integer|in:0,1', //添加Facebook客服 状态 0=关闭 1=开启
            'user_registration_reward_rules.status'         => 'required|integer|in:0,1', //用户注册奖励规则 状态 0=关闭 1=开启
            'first_order_reward_rules.status'         => 'required|integer|in:0,1', //首单奖励规则 状态 0=关闭 1=开启
            'customer_relationship_rules'         => 'required|array', //客户关系规则
            'customer_relationship_rules.customer_binding_model_type' => 'required|integer|in:1,2,3,4', ////客户关系绑定模型 1=简单模式 2=平衡模式 3=竞争模式 4=自定义
            'customer_relationship_rules.commission_model_type' => 'required|integer|in:1,2,3', //佣金模式类型 1=无佣金关系 2=自动返佣 3=上级返佣
            'settlement_rules'         => 'required|array', //结算规则
            'settlement_rules.store_commission_payment_model'         => 'required|integer|in:1,2', //到店付分佣模式 1=按线上支付 2=按订单+尾款
            'settlement_rules.settlement_account_type'         => 'required|integer|in:1,2', //结算方式 1=支付宝 2=独立账户
            'settlement_rules.commission_settlement_time_type' => 'required|integer|in:1,2', //佣金结算时间类型 1=交易完在结算 2=自定义商品下单*天结算
            'promotion_product_config'         => 'required|array', //推广商品配置
            'promotion_product_config.store_type'         => 'required|integer|in:1,2', //推广店铺类型1=全部店铺2=指定店铺
            'promotion_product_config.product_type'         => 'required|integer|in:1,2', //推广商品类型1=全部商品2=指定商品

        ];
        //申请条件规则
        $rules['application_requirements.consumption_amount_number'] = [  //消费金额参数 数量
            Rule::requiredIf(function () {
                return $this->input('application_requirements.consumption_amount_status') == 1; //消费金额参数 状态0=关闭 1=开启
            }),
            'nullable',
            'numeric',
            'regex:/^\d+(\.\d{1,2})?$/'
        ];
        $rules['application_requirements.product_list_ids'] = [  //产品ID
            Rule::requiredIf(function () {
                return $this->input('application_requirements.product_list_status') == 1; //购买指定商品 0=关闭 1=开启
            }),
            'nullable',
            'string',
        ];
        $rules['application_requirements.consumption_frequency_number'] = [  //消费频率参数 数量
            Rule::requiredIf(function () {
                return $this->input('application_requirements.consumption_frequency_status') == 1; //消费频率参数 状态0=关闭 1=开启
            }),
            'nullable',
            'integer',
        ];
        //新客户注册奖励规则
        $rules['user_registration_reward_rules.reward_amount'] = [
            Rule::requiredIf(function () {
                return $this->input('user_registration_reward_rules.status') == 1;
            }),
            'nullable',
            'numeric',
            'regex:/^\d+(\.\d{1,2})?$/'
        ];
        $rules['user_registration_reward_rules.issuance_review_type'] = [
            Rule::requiredIf(function () {
                return $this->input('user_registration_reward_rules.status') == 1;
            }),
            'nullable',
            'integer',
            'in:1,2' //用户注册奖励规则发放审核类型 1=需要审核 2=不需要审核
        ];
        $rules['user_registration_reward_rules.rules_description'] = [
            Rule::requiredIf(function () {
                return $this->input('user_registration_reward_rules.status') == 1;
            })
        ];
        //新客户首单转化奖励设置
        $rules['first_order_reward_rules.reward_method_type'] = [
            Rule::requiredIf(function () {
                return $this->input('first_order_reward_rules.status') == 1;
            }),
            'nullable',
            'integer',
            'in:1'
        ];
        $rules['first_order_reward_rules.reward_conditions_type'] = [
            Rule::requiredIf(function () {
                return $this->input('first_order_reward_rules.status') == 1;
            }),
            'nullable',
            'integer',
            'in:1,2'
        ];
        $rules['first_order_reward_rules.reward_amount_number'] = [
            Rule::requiredIf(function () {
                return $this->input('first_order_reward_rules.reward_method_type') == 1 && $this->input('first_order_reward_rules.status') == 1;
            }),
            'nullable',
            'numeric',
            'regex:/^\d+(\.\d{1,2})?$/'
        ];
        $rules['first_order_reward_rules.reward_amount_expiration_date'] = [
            Rule::requiredIf(function () {
                return $this->input('first_order_reward_rules.reward_method_type') == 1 && $this->input('first_order_reward_rules.status') == 1; //奖励方式 1=固定金额
            }),
            'nullable',
            'integer'
        ];
        $rules['first_order_reward_rules.reward_conditions_amount'] = [
            Rule::requiredIf(function () {
                return $this->input('first_order_reward_rules.reward_conditions_type') == 1 && $this->input('first_order_reward_rules.status') == 1; //1=下单金额 2=购买商品数量
            }),
            'nullable',
            'numeric',
            'regex:/^\d+(\.\d{1,2})?$/'
        ];
        $rules['first_order_reward_rules.reward_conditions_boxes_number'] = [
            Rule::requiredIf(function () {
                return $this->input('first_order_reward_rules.reward_conditions_type') == 2 && $this->input('first_order_reward_rules.status') == 1; //1=下单金额 2=购买商品数量
            }),
            'nullable',
            'integer'
        ];
        $rules['first_order_reward_rules.reward_conditions_product_ids'] = [
            Rule::requiredIf(function () {
                return $this->input('first_order_reward_rules.status') == 1; //新客户首单转化奖励设置开关 0=关闭 1=开启
            }),
            'nullable',
            'string'
        ];
        $rules['first_order_reward_rules.rules_description'] = [
            Rule::requiredIf(function () {
                return $this->input('first_order_reward_rules.status') == 1; //新客户首单转化奖励设置开关 0=关闭 1=开启
            }),
            'nullable',
            'string'
        ];
        //客户关系绑定设置
        $rules['customer_relationship_rules.customer_binding_customize_config'] = [
            Rule::requiredIf(function () {
                return $this->input('customer_relationship_rules.customer_binding_model_type') == 4; //客户绑定模式类型 1=简单模式 2=平衡模式 3=竞争模式 4=自定义
            }),
            'nullable',
            'string'
        ];
        //结算规则
        $rules['settlement_rules.commission_settlement_customize_time'] = [
            Rule::requiredIf(function () {
                return $this->input('settlement_rules.commission_settlement_time_type') == 2; //佣金结算时间类型 1=交易完成后结算 2=自定义商品下单*天结算
            }),
            'nullable',
            'integer'
        ];
        //身份标签ID未知
        $rules['application_requirements.identity_label_ids'] = [
            Rule::requiredIf(function () {
                return $this->input('application_requirements.identity_label_status') == 1; //身份标签参数 状态0=关闭 1=开启
            }),
            'nullable',
            'string'
        ];
        //渠道活码图片地址
        $rules['application_requirements.qrcode_urls'] = [
            Rule::requiredIf(function () {
                return $this->input('application_requirements.identity_label_status') == 1 && $this->input('first_order_reward_rules.status') != 3; //身份标签参数 状态0=关闭 1=开启 && 推广员申请条件类型 1=满足任一勾选条件 2=需同时满足勾选条件 3=无条件门槛
            }),
            'nullable',
            'string'
        ];
        //推广商品配置
        $rules['promotion_product_config.shopid_list'] = [
            Rule::requiredIf(function () {
                return $this->input('promotion_product_config.store_type') == 2; //推广店铺类型1=全部店铺2=指定店铺
            }),
            'nullable',
            'string'
        ];
        $rules['promotion_product_config.mini_commission_rate'] = [
            Rule::requiredIf(function () {
                return $this->input('promotion_product_config.product_type') == 1; //推广商品类型1=全部商品2=指定商品
            }),
            'nullable',
            'numeric',
        ];
        $rules['promotion_product_config.live_commission_rate'] = [
            Rule::requiredIf(function () {
                return $this->input('promotion_product_config.product_type') == 1; //推广商品类型1=全部商品2=指定商品
            }),
            'nullable',
            'numeric',
        ];
        $rules['promotion_product_config.mini_two_commission_rate'] = [
            Rule::requiredIf(function () {
                return $this->input('promotion_product_config.product_type') == 1; //推广商品类型1=全部商品2=指定商品
            }),
            'nullable',
            'numeric',
        ];
        $rules['promotion_product_config.live_two_commission_rate'] = [
            Rule::requiredIf(function () {
                return $this->input('promotion_product_config.product_type') == 1; //推广商品类型1=全部商品2=指定商品
            }),
            'nullable',
            'numeric',
        ];
        $rules['promotion_product_config.mini_three_commission_rate'] = [
            Rule::requiredIf(function () {
                return $this->input('promotion_product_config.product_type') == 1; //推广商品类型1=全部商品2=指定商品
            }),
            'nullable',
            'numeric',
        ];
        $rules['promotion_product_config.live_three_commission_rate'] = [
            Rule::requiredIf(function () {
                return $this->input('promotion_product_config.product_type') == 1; //推广商品类型1=全部商品2=指定商品
            }),
            'nullable',
            'numeric',
        ];
        return $rules;
    }


    // 场景列表
    protected   $scenes         = [
        'application_content_config'             => [
            'application_materials',
            'application_materials.fixed_parameters',
            'application_materials.fixed_parameters.full_name',
            'application_materials.fixed_parameters.full_name.is_required',
            'application_materials.fixed_parameters.full_name.status',
            'application_materials.fixed_parameters.mobile_phone',
            'application_materials.fixed_parameters.mobile_phone.is_required',
            'application_materials.fixed_parameters.mobile_phone.status',
            'application_materials.fixed_parameters.email',
            'application_materials.fixed_parameters.email.is_required',
            'application_materials.fixed_parameters.email.status',
            'application_materials.fixed_parameters.city',
            'application_materials.fixed_parameters.city.is_required',
            'application_materials.fixed_parameters.city.status',
            'application_materials.fixed_parameters.company_name',
            'application_materials.fixed_parameters.company_name.is_required',
            'application_materials.fixed_parameters.company_name.status',
            'application_requirements.conditional_type',
            'application_requirements.is_review',
            'application_requirements.introduction',
            'application_requirements.conditional_type',
            'application_requirements.product_list_ids',
            'application_requirements.product_list_status',
            'application_requirements.consumption_frequency_number',
            'application_requirements.consumption_frequency_status',
            'application_requirements.consumption_amount_number',
            'application_requirements.consumption_amount_status',
            'application_requirements.identity_label_ids',
            'application_requirements.identity_label_status',
            'application_requirements.qrcode_urls',
        ],
        'application_switch_config'             => ['application_switch_status'],
        'application_content_config_detail'     => ['code_name'],
        'application_domestic_user'             => [
            'application_domestic_user.new_user_definition.successful_type',
            'application_domestic_user.new_user_definition.other_conditions_type',
            'application_domestic_user.effective_customer_definition.mini_register_and_login_status',
            'application_domestic_user.effective_customer_definition.add_wecom_customer_service_status',
            'application_domestic_user.effective_customer_definition.customer_churn_status',
            'application_domestic_user.effective_customer_definition.exit_wechat_group_status',
        ],
        'application_foreign_user'             => [
            'application_foreign_user.new_user_definition.successful_type',
            'application_foreign_user.effective_customer_definition.mini_register_and_login_status',
            'application_foreign_user.effective_customer_definition.add_facebook_customer_service_status',
        ],
        'application_reward_config' => [
            'user_registration_reward_rules.status',
            'user_registration_reward_rules.reward_amount',
            'user_registration_reward_rules.issuance_review_type',
            'user_registration_reward_rules.rules_description',
            'first_order_reward_rules.status',
            'first_order_reward_rules.reward_method_type',
            'first_order_reward_rules.reward_amount_number',
            'first_order_reward_rules.reward_amount_expiration_date',
            'first_order_reward_rules.reward_conditions_type',
            'first_order_reward_rules.reward_conditions_amount',
            'first_order_reward_rules.reward_conditions_boxes_number',
            'first_order_reward_rules.reward_conditions_product_ids',
            'first_order_reward_rules.rules_description',
        ],
        'application_customer_relationship' => [
            'customer_relationship_rules.customer_binding_model_type',
            'customer_relationship_rules.commission_model_type',
        ],
        'application_settlement_rules'  => [
            'settlement_rules.store_commission_payment_model',
            'settlement_rules.commission_settlement_time_type',
            'settlement_rules.commission_settlement_customize_time',
            'settlement_rules.settlement_account_type',
        ],
        'application_product_config' =>[
            'promotion_product_config.store_type',
            'promotion_product_config.shopid_list',
            'promotion_product_config.product_type',
            'promotion_product_config.mini_commission_rate',
            'promotion_product_config.live_commission_rate',
            // 'promotion_product_config.mini_two_commission_rate',
            // 'promotion_product_config.live_two_commission_rate',
            // 'promotion_product_config.mini_three_commission_rate',
            // 'promotion_product_config.live_three_commission_rate',
        ],
    ];

    /**
     * 获取已定义验证规则的错误消息
     *
     * @return array
     */
    public function messages()
    {
        return [
            'name.required'     => '名称必填',
            'id.required'       => 'ID未知',
            'id.integer'        => 'ID格式错误',
            'id.gt'               => 'ID格式错误',
            'status.required'   => '状态未知',
            'status.integer'    => '状态格式错误',
            'status.in'         => '状态格式错误',
            'page.integer'      => '页码格式错误',
            'page.min'          => '页码格式错误',
            'limit.integer'     => '每页数量格式错误',
            'limit.min'         => '每页数量格式错误',
            'code_name.required'    => '配置编码code_name未知',
            'code_name.string'    => '配置编码ode_name格式错误',
            'application_materials.required'         => '申请资料未知',
            'application_materials.array'         => '申请资料格式错误',
            'application_materials.fixed_parameters.required'         => '申请资料未知',
            'application_materials.fixed_parameters.array'         => '申请资料格式错误',
            'application_materials.fixed_parameters.full_name.required'         => '姓名配置数据不能为空',
            'application_materials.fixed_parameters.full_name.array'         => '姓名格式错误',
            'application_materials.fixed_parameters.full_name.is_required.required'         => '姓名是否必填未知',
            'application_materials.fixed_parameters.full_name.is_required.integer'         => '姓名是否必填格式错误',
            'application_materials.fixed_parameters.full_name.status.required'         => '姓名状态未知',
            'application_materials.fixed_parameters.full_name.status.integer'         => '姓名状态格式错误',
            'application_materials.fixed_parameters.mobile_phone.required'         => '手机号格配置数据不能为空',
            'application_materials.fixed_parameters.mobile_phone.array'         => '手机号格式错误',
            'application_materials.fixed_parameters.mobile_phone.is_required.required'         => '手机号是否必填未知',
            'application_materials.fixed_parameters.mobile_phone.is_required.integer'         => '手机号是否必填格式错误',
            'application_materials.fixed_parameters.mobile_phone.status.required'         => '手机号状态未知',
            'application_materials.fixed_parameters.mobile_phone.status.integer'         => '手机号状态格式错误',
            'application_materials.fixed_parameters.email.required'         => '邮箱配置数据不能为空',
            'application_materials.fixed_parameters.email.array'         => '邮箱格式错误',
            'application_materials.fixed_parameters.email.is_required.required'         => '邮箱是否必填未知',
            'application_materials.fixed_parameters.email.is_required.integer'         => '邮箱是否必填格式错误',
            'application_materials.fixed_parameters.email.status.required'         => '邮箱状态未知',
            'application_materials.fixed_parameters.email.status.integer'         => '邮箱状态格式错误',
            'application_materials.fixed_parameters.city.required'         => '城市配置数据不能为空',
            'application_materials.fixed_parameters.city.array'         => '城市格式错误',
            'application_materials.fixed_parameters.city.is_required.required'         => '城市是否必填未知',
            'application_materials.fixed_parameters.city.is_required.integer'         => '城市是否必填格式错误',
            'application_materials.fixed_parameters.city.status.required'         => '城市状态未知',
            'application_materials.fixed_parameters.city.status.integer'         => '城市状态格式错误',
            'application_materials.fixed_parameters.company_name.required'         => '公司名称配置数据不能为空',
            'application_materials.fixed_parameters.company_name.array'         => '公司名称格式错误',
            'application_materials.fixed_parameters.company_name.is_required.required'         => '公司名称是否必填未知',
            'application_materials.fixed_parameters.company_name.is_required.integer'         => '公司名称是否必填格式错误',
            'application_materials.fixed_parameters.company_name.status.required'         => '公司名称状态未知',
            'application_materials.fixed_parameters.company_name.status.integer'         => '公司名称状态格式错误',
            'application_switch_status.required'         => '申请开关未知',
            'application_switch_status.integer'         => '申请开关格式错误',
            'application_switch_status.in'         => '申请开关格式错误',
            'application_requirements.required'         => '申请条件未知',
            'application_requirements.array'         => '申请条件格式错误',
            'application_requirements.conditional_type.required'         => '条件类型未知',
            'application_requirements.conditional_type.integer'         => '条件类型格式错误',
            'application_requirements.conditional_type.in'         => '条件类型格式错误',
            'application_requirements.is_review.required'         => '是否审核未知',
            'application_requirements.is_review.integer'         => '是否审核格式错误',
            'application_requirements.is_review.in'         => '是否审核格式错误',
            'application_requirements.introduction.required'         => '申请说明未知',
            'application_requirements.introduction.string'         => '申请说明格式错误',
            'application_requirements.conditional_type.required'         => '条件类型未知',
            'application_requirements.conditional_type.integer'         => '条件类型格式错误',
            'application_requirements.conditional_type.in'         => '条件类型格式错误',
            'application_requirements.product_list.required'         => '产品列表未知',
            'application_requirements.product_list.array'         => '产品列表格式错误',
            'application_requirements.product_list_ids.required_with'         => '当购买指定商品开启时,产品ID不能为空',
            'application_requirements.product_list_ids.required'         => '产品ID未知',
            'application_requirements.product_list_ids.string'         => '产品ID格式错误',
            'application_requirements.product_list_status.required'         => '产品状态未知',
            'application_requirements.product_list_status.integer'         => '产品状态格式错误',
            'application_requirements.consumption_frequency_number.required_with'         => '当消费频率开启时，消费频率数量不能为空',
            'application_requirements.consumption_frequency_number.required'         => '消费频率数量未知',
            'application_requirements.consumption_frequency_number.integer'         => '消费频率数量格式错误',
            'application_requirements.consumption_frequency_status.required'         => '消费频率状态未知',
            'application_requirements.consumption_frequency_status.integer'         => '消费频率状态格式错误',
            'application_requirements.consumption_amount.required'         => '消费金额未知',
            'application_requirements.consumption_amount.array'         => '消费金额格式错误',
            'application_requirements.consumption_amount_number.required_with'         => '当消费金额开启时，消费金额数量不能为空',
            'application_requirements.consumption_amount_number.required'         => '消费金额数量未知',
            'application_requirements.consumption_amount_number.numeric'         => '消费金额数量格式错误',
            'application_requirements.consumption_amount_number.regex'         => '消费金额数量格式错误,最低为0.01',
            'application_requirements.consumption_amount_status.required'         => '消费金额状态未知',
            'application_requirements.consumption_amount_status.integer'         => '消费金额状态格式错误',
            'application_requirements.identity_label.required'         => '身份标签未知',
            'application_requirements.identity_label.array'         => '身份标签格式错误',
            'application_requirements.identity_label_ids.required_with'         => '当身份标签状态开启时,身份标签ID不能为空',
            'application_requirements.identity_label_ids.required'         => '身份标签ID未知',
            'application_requirements.identity_label_ids.string'         => '身份标签ID格式错误',
            'application_requirements.qrcode_urls.required_with'         => '当身份标签状态开启时,渠道活码二维码图片地址不能为空',
            'application_requirements.qrcode_urls.required'         => '二维码图片地址未知',
            'application_requirements.qrcode_urls.string'         => '二维码图片地址格式错误',
            'application_requirements.identity_label_status.required'         => '身份标签状态未知',
            'application_requirements.identity_label_status.integer'         => '身份标签状态格式错误',
            'application_requirements.identity_label_status.in'         => '身份标签状态格式错误',
            'application_domestic_user.required'                                              => '国内用户定义配置未知',
            'application_domestic_user.new_user_definition.required'         => '新用户定义未知',
            'application_domestic_user.new_user_definition.array'         => '新用户定义格式错误',
            'application_domestic_user.new_user_definition.successful_type.required'         => '拉新成功定义类型未知',
            'application_domestic_user.new_user_definition.successful_type.string'         => '拉新成功定义类型格式错误',
            'application_domestic_user.new_user_definition.other_conditions_type.required'         => '新用户定义其他条件类型未知',
            'application_domestic_user.new_user_definition.other_conditions_type.string'         => '新用户定义其他条件类型格式错误',
            'application_domestic_user.effective_customer_definition.required'         => '有效客户定义未知',
            'application_domestic_user.effective_customer_definition.array'         => '有效客户定义格式错误',
            'application_domestic_user.effective_customer_definition.mini_register_and_login_status.required'         => '注册登录小程序状态未知',
            'application_domestic_user.effective_customer_definition.mini_register_and_login_status.integer'         => '注册登录小程序状态格式错误',
            'application_domestic_user.effective_customer_definition.mini_register_and_login_status.in'         => '注册登录小程序状态格式错误',
            'application_domestic_user.effective_customer_definition.add_wecom_customer_service_status.required'         => '添加企微客服状态未知',
            'application_domestic_user.effective_customer_definition.add_wecom_customer_service_status.integer'         => '添加企微客服状态格式错误',
            'application_domestic_user.effective_customer_definition.add_wecom_customer_service_status.in'         => '添加企微客服状态格式错误',
            'application_domestic_user.effective_customer_definition.customer_churn_status.required'         => '企微客户状态为正常未流失状态未知',
            'application_domestic_user.effective_customer_definition.customer_churn_status.integer'         => '企微客户状态为正常未流失状态格式错误',
            'application_domestic_user.effective_customer_definition.customer_churn_status.in'         => '企微客户状态为正常未流失状态格式错误',
            'application_domestic_user.effective_customer_definition.exit_wechat_group_status.required'         => '客户已入企微群且未退群状态未知',
            'application_domestic_user.effective_customer_definition.exit_wechat_group_status.integer'         => '客户已入企微群且未退群状态格式错误',
            'application_domestic_user.effective_customer_definition.exit_wechat_group_status.in'         => '客户已入企微群且未退群状态格式错误',
            'application_foreign_user.required'                                                             => '国外用户定义未知',
            'application_foreign_user.array'                                                                => '国外用户定义格式错误',
            'application_foreign_user.new_user_definition.required'         => '新用户定义未知',
            'application_foreign_user.new_user_definition.array'         => '新用户定义格式错误',
            'application_foreign_user.new_user_definition.successful_type.required'         => '拉新成功定义类型未知',
            'application_foreign_user.new_user_definition.successful_type.string'         => '拉新成功定义类型格式错误',
            'application_foreign_user.new_user_definition.other_conditions_type.required'         => '新用户定义其他条件类型未知',
            'application_foreign_user.new_user_definition.other_conditions_type.integer'         => '新用户定义其他条件类型格式错误',
            'application_foreign_user.new_user_definition.other_conditions_type.in'         => '新用户定义其他条件类型格式错误',
            'application_foreign_user.effective_customer_definition.required'         => '有效客户定义未知',
            'application_foreign_user.effective_customer_definition.array'         => '有效客户定义格式错误',
            'application_foreign_user.effective_customer_definition.mini_register_and_login_status.required'         => '注册登录小程序状态未知',
            'application_foreign_user.effective_customer_definition.mini_register_and_login_status.integer'         => '注册登录小程序状态格式错误',
            'application_foreign_user.effective_customer_definition.mini_register_and_login_status.in'         => '注册登录小程序状态格式错误',
            'application_foreign_user.effective_customer_definition.add_facebook_customer_service_status.required'         => '添加Facebook客服状态未知',
            'application_foreign_user.effective_customer_definition.add_facebook_customer_service_status.integer'         => '添加Facebook客服状态格式错误',
            'application_foreign_user.effective_customer_definition.add_facebook_customer_service_status.in'         => '添加Facebook客服状态格式错误',
            'user_registration_reward_rules.status.required'                => '用户注册奖励规则状态未知',
            'user_registration_reward_rules.status.integer'                 => '用户注册奖励规则状态格式错误',
            'user_registration_reward_rules.status.in'                      => '用户注册奖励规则状态格式错误',
            'user_registration_reward_rules.reward_amount.required'         => '用户注册奖励规则奖励金额未知',
            'user_registration_reward_rules.reward_amount.numeric'          => '用户注册奖励规则奖励金额格式错误',
            'user_registration_reward_rules.reward_amount.regex'          => '用户注册奖励规则奖励金额格式错误,最低为0.01',
            'user_registration_reward_rules.reward_amount.min'              => '用户注册奖励规则奖励金额格式错误',
            'user_registration_reward_rules.issuance_review_type.required'   => '用户注册奖励规则发放审核类型未知',
            'user_registration_reward_rules.issuance_review_type.integer'    => '用户注册奖励规则发放审核类型格式错误',
            'user_registration_reward_rules.issuance_review_type.in'         => '用户注册奖励规则发放审核类型格式错误',
            'user_registration_reward_rules.rules_description.required'     => '用户注册奖励规则规则描述未知',
            'user_registration_reward_rules.rules_description.string'       => '用户注册奖励规则规则描述格式错误',
            'first_order_reward_rules.status.required'                     => '首单奖励规则状态未知',
            'first_order_reward_rules.status.integer'                      => '首单奖励规则状态格式错误',
            'first_order_reward_rules.status.in'                           => '首单奖励规则状态格式错误',
            'first_order_reward_rules.reward_amount_number.required'              => '首单奖励规则奖励金额未知',
            'first_order_reward_rules.reward_amount_number.numeric'               => '首单奖励规则奖励金额格式错误',
            'first_order_reward_rules.reward_amount_number.regex'               => '首单奖励规则奖励金额格式错误,最低为0.01',
            'first_order_reward_rules.reward_amount_number.min'                   => '首单奖励规则奖励金额格式错误',
            'first_order_reward_rules.reward_method_type.required'              => '首单奖励方式状态未知',
            'first_order_reward_rules.reward_method_type.integer'               => '首单奖励方式状态格式错误',
            'first_order_reward_rules.reward_method_type.in'                   => '首单奖励方式状态格式错误',
            'first_order_reward_rules.reward_amount_expiration_date.required'              => '首单奖励规则奖励金额有效期未知',
            'first_order_reward_rules.reward_conditions_type.required'                     => '首单奖励规则奖励条件类型未知',
            'first_order_reward_rules.reward_conditions_type.integer'              => '首单奖励规则奖励条件类型格式错误',
            'first_order_reward_rules.reward_conditions_type.in'                   => '首单奖励规则奖励条件类型格式错误',
            'first_order_reward_rules.reward_conditions_amount.required'           => '满*元奖励条件金额未知',
            'first_order_reward_rules.reward_conditions_amount.numeric'            => '满*元奖励条件金额格式错误',
            'first_order_reward_rules.reward_conditions_amount.regex'            => '满*元奖励条件金额格式错误,最低为0.01',
            'first_order_reward_rules.reward_conditions_amount.min'                => '满*元奖励条件金额格式错误',
            'first_order_reward_rules.reward_conditions_boxes_number.required'      => '满*箱奖励条件数量未知',
            'first_order_reward_rules.reward_conditions_boxes_number.integer'       => '满*箱奖励条件数量格式错误',
            'first_order_reward_rules.reward_conditions_boxes_number.min'           => '满*箱奖励条件数量格式错误',
            'first_order_reward_rules.rules_description.required'                  => '首单奖励规则描述未知',
            'first_order_reward_rules.rules_description.string'                    => '首单奖励规则描述格式错误',
            'first_order_reward_rules.reward_conditions_product_ids.required'  => '下单产品范围未知',
            'customer_relationship_rules.required'                            => '客户关系规则未知',
            'customer_relationship_rules.array'                                 => '客户关系规则格式错误',
            'customer_relationship_rules.customer_binding_model_type.required'   => '客户绑定模式类型未知',
            'customer_relationship_rules.customer_binding_model_type.integer'    => '客户绑定模式类型格式错误',
            'customer_relationship_rules.customer_binding_model_type.in'         => '客户绑定模式类型格式错误',
            'customer_relationship_rules.commission_model_type.required'         => '佣金模式类型未知',
            'customer_relationship_rules.commission_model_type.integer'          => '佣金模式类型格式错误',
            'customer_relationship_rules.commission_model_type.in'               => '佣金模式类型格式错误',
            'settlement_rules.required'                                       => '结算规则未知',
            'settlement_rules.array'                                        => '结算规则格式错误',
            'settlement_rules.store_commission_payment_model.required'           => '到店付分佣模式未知',
            'settlement_rules.store_commission_payment_model.integer'           => '到店付分佣模式格式错误',
            'settlement_rules.store_commission_payment_model.in'           => '到店付分佣模式格式错误',
            'settlement_rules.settlement_account_type.required'           => '佣金结算时间类型未知',
            'settlement_rules.settlement_account_type.integer'           => '佣金结算时间类型格式错误',
            'settlement_rules.settlement_account_type.in'           => '佣金结算时间类型格式错误',
            'settlement_rules.commission_settlement_customize_time.required' => '自定义商品下单*天结算未知',
            'settlement_rules.commission_settlement_customize_time.integer' => '自定义商品下单*天结算格式错误',
            'promotion_product_config.required'                              => '推广商品配置未知',
            'promotion_product_config.array'                                   => '推广商品配置格式错误',
            'promotion_product_config.store_type.required'          => '推广店铺类型未知',
            'promotion_product_config.store_type.integer'           => '推广店铺类型格式错误',
            'promotion_product_config.store_type.in'           => '推广店铺类型格式错误',
            'promotion_product_config.product_type.required'         => '推广商品类型未知',
            'promotion_product_config.product_type.integer'          => '推广商品类型格式错误',
            'promotion_product_config.product_type.in'          => '推广商品类型格式错误',
            'promotion_product_config.shopid_list.required'          => '推广店铺列表未知',
            'promotion_product_config.shopid_list.string'          => '推广店铺列表格式错误',
            'promotion_product_config.mini_commission_rate.required' => '推广商品小程序分佣比例未知',
            'promotion_product_config.mini_commission_rate.numeric' => '推广商品小程序分佣比例格式错误',
            'promotion_product_config.mini_commission_rate.regex' => '推广商品小程序分佣比例格式错误,最低为0.01',
            'promotion_product_config.live_commission_rate.required'  => '推广商品直播分佣比例未知',
            'promotion_product_config.live_commission_rate.numeric'  => '推广商品直播分佣比例格式错误',
            'promotion_product_config.live_commission_rate.regex'  => '推广商品直播分佣比例格式错误,最低为0.01',
            'promotion_product_config.mini_two_commission_rate.required'  => '推广商品小程序二级分佣比例未知',
            'promotion_product_config.mini_two_commission_rate.numeric'  => '推广商品小程序二级分佣比例格式错误',
            'promotion_product_config.mini_two_commission_rate.regex'  => '推广商品小程序二级分佣比例格式错误,最低为0.01',
            'promotion_product_config.live_two_commission_rate.required'  => '推广商品直播二级分佣比例未知',
            'promotion_product_config.live_two_commission_rate.numeric'  => '推广商品直播二级分佣比例格式错误',
            'promotion_product_config.live_two_commission_rate.regex'  => '推广商品直播二级分佣比例格式错误,最低为0.01',
            'promotion_product_config.mini_three_commission_rate.required'  => '推广商品小程序三级分佣比例未知',
            'promotion_product_config.mini_three_commission_rate.numeric'  => '推广商品小程序三级分佣比例格式错误',
            'promotion_product_config.mini_three_commission_rate.regex'  => '推广商品小程序三级分佣比例格式错误,最低为0.01',
            'promotion_product_config.live_three_commission_rate.required'  => '推广商品直播三级分佣比例未知',
            'promotion_product_config.live_three_commission_rate.numeric'  => '推广商品直播三级分佣比例格式错误',
            'promotion_product_config.live_three_commission_rate.regex'  => '推广商品直播三级分佣比例格式错误,最低为0.01',
        ];
    }
}
