AttachmentCategoryValidate.php 498 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020-03-26
  7. *
  8. *
  9. */
  10. namespace app\validate\admin;
  11. use think\Validate;
  12. class AttachmentCategoryValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'pid|选择分类' => 'require|integer',
  17. 'attachment_category_name|分类名称' => 'require|max:32',
  18. 'attachment_category_enname|分类目录' => 'require|alphaNum|max:32',
  19. 'sort|排序' => 'require|integer'
  20. ];
  21. }