<?php
// +----------------------------------------------------------------------
// | saiadmin [ saiadmin快速开发框架 ]
// +----------------------------------------------------------------------
// | Author: your name
// +----------------------------------------------------------------------
namespace app\dice\validate\reward_config;

use plugin\saiadmin\basic\BaseValidate;

/**
 * 奖励配置验证器
 */
class DiceRewardConfigValidate extends BaseValidate
{
    /**
     * 定义验证规则
     */
    protected $rule =   [
        'grid_number' => 'require',
        'ui_text' => 'require',
        'real_ev' => 'require',
        'tier' => 'require',
    ];

    /**
     * 定义错误信息
     */
    protected $message  =   [
        'grid_number' => '色子点数必须填写',
        'ui_text' => '前端显示文本必须填写',
        'real_ev' => '真实资金结算必须填写',
        'tier' => '所属档位必须填写',
    ];

    /**
     * 定义场景
     */
    protected $scene = [
        'save' => [
            'grid_number',
            'ui_text',
            'real_ev',
            'tier',
        ],
        'update' => [
            'grid_number',
            'ui_text',
            'real_ev',
            'tier',
        ],
    ];

}
