Sellerbrand.php 651 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace app\common\validate;
  3. use think\Validate;
  4. /**
  5. *
  6. *
  7. * ----------------------------------------------------------------------------
  8. *
  9. * 验证器
  10. */
  11. class Sellerbrand extends Validate
  12. {
  13. protected $rule = [
  14. 'brand_name' => 'require',
  15. 'brand_initial' => 'require'
  16. ];
  17. protected $message = [
  18. 'brand_name.require' => '品牌名称不能为空',
  19. 'brand_initial.require' => '请填写首字母'
  20. ];
  21. protected $scene = [
  22. 'brand_save' => ['brand_name', 'brand_initial'],
  23. 'brand_edit' => ['brand_name', 'brand_initial'],
  24. ];
  25. }