Selleralbum.php 1002 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. * ============================================================================
  6. *
  7. * ============================================================================
  8. *
  9. * ----------------------------------------------------------------------------
  10. *
  11. * ============================================================================
  12. * 验证器
  13. */
  14. class Selleralbum extends Validate
  15. {
  16. protected $rule = [
  17. 'aclass_name' => 'require',
  18. 'aclass_des' => 'require',
  19. 'aclass_sort' => 'require'
  20. ];
  21. protected $message = [
  22. 'aclass_name.require' => '相册名称必填',
  23. 'aclass_des.require' => '相册描述必填',
  24. 'aclass_sort.require' => '相册排序必填'
  25. ];
  26. protected $scene = [
  27. 'album_add_save' => ['aclass_name', 'aclass_des', 'aclass_sort'],
  28. 'album_edit_save' => ['aclass_name', 'aclass_des', 'aclass_sort']
  29. ];
  30. }