Sellerplate.php 692 B

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