ConfigClassifyValidate.php 610 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020-03-25
  7. *
  8. *
  9. */
  10. namespace app\validate\admin;
  11. use think\Validate;
  12. class ConfigClassifyValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'pid|上级分类' => 'require|integer',
  17. 'classify_name|配置分类名称' => 'require|max:20',
  18. 'classify_key|配置分类key' => 'require|max:20',
  19. 'info|配置分类说明' => 'max:30',
  20. 'status|显示状态' => 'require|integer|in:0,1',
  21. 'sort|排序' => 'require|integer',
  22. 'icon|图标' => 'max:15'
  23. ];
  24. }