Selleralbum.php 768 B

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