AttachmentCategoryValidate.php 426 B

123456789101112131415161718192021
  1. <?php
  2. namespace app\validate\admin;
  3. use think\Validate;
  4. class AttachmentCategoryValidate extends Validate
  5. {
  6. protected $failException = true;
  7. protected $rule = [
  8. 'pid|选择分类' => 'require|integer',
  9. 'attachment_category_name|分类名称' => 'require|max:16',
  10. 'attachment_category_enname|分类目录' => 'require|alphaNum|max:16',
  11. 'sort|排序' => 'require|integer'
  12. ];
  13. }