<?php
namespace app\admin\validate\life;

use think\Validate;

class SchedulingValidate extends Validate
{
    protected $rule =   [
        'scheduling_start_time'  => 'require',
        'scheduling_id'    => 'require',
        'scheduling_end_time' => 'require',
        'scheduling_cinema_id' => 'require',
    ];

    protected $message  =   [
        'scheduling_id.require' => '排期ID不能为空',
        'scheduling_start_time.require' => '排期开始时间不能为空',
        'scheduling_end_time.require' => '排期结束时间不能为空',
        'scheduling_cinema_id.require' => '排期影片id不能为空',
    ];

    //场景
    protected $scene = [
        'create'   => ['scheduling_start_time','scheduling_end_time','scheduling_cinema_id'],
        'update'   => ['scheduling_id','scheduling_start_time','scheduling_end_time','scheduling_cinema_id'],
        'info'     => ['scheduling_id']
    ];
}
