Sellerplate.php 926 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. * ============================================================================
  6. *
  7. * ============================================================================
  8. *
  9. * ----------------------------------------------------------------------------
  10. *
  11. * ============================================================================
  12. * 验证器
  13. */
  14. class Sellerplate extends Validate
  15. {
  16. protected $rule = [
  17. 'storeplate_name' => 'require',
  18. 'storeplate_content' => 'require',
  19. ];
  20. protected $message = [
  21. 'storeplate_name.require' => '请填写版式名称',
  22. 'storeplate_content.require' => '请填写版式内容',
  23. ];
  24. protected $scene = [
  25. 'plate_add' => ['storeplate_name', 'storeplate_content'],
  26. 'plate_edit' => ['storeplate_name', 'storeplate_content'],
  27. ];
  28. }