SchedulingValidate.php 930 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\admin\validate\life;
  3. use think\Validate;
  4. class SchedulingValidate extends Validate
  5. {
  6. protected $rule = [
  7. 'scheduling_start_time' => 'require',
  8. 'scheduling_id' => 'require',
  9. 'scheduling_end_time' => 'require',
  10. 'scheduling_cinema_id' => 'require',
  11. ];
  12. protected $message = [
  13. 'scheduling_id.require' => '排期ID不能为空',
  14. 'scheduling_start_time.require' => '排期开始时间不能为空',
  15. 'scheduling_end_time.require' => '排期结束时间不能为空',
  16. 'scheduling_cinema_id.require' => '排期影片id不能为空',
  17. ];
  18. //场景
  19. protected $scene = [
  20. 'create' => ['scheduling_start_time','scheduling_end_time','scheduling_cinema_id'],
  21. 'update' => ['scheduling_id','scheduling_start_time','scheduling_end_time','scheduling_cinema_id'],
  22. 'info' => ['scheduling_id']
  23. ];
  24. }