ArticleCategoryValidate.php 526 B

12345678910111213141516171819202122232425262728
  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 ArticleCategoryValidate extends Validate
  13. {
  14. protected $failException = true;
  15. protected $rule = [
  16. 'pid|选择分类' => 'require|integer',
  17. 'title|分类名称' => 'require|max:32',
  18. 'info|分类简介' => 'max:255',
  19. 'status|状态' => 'require|in:0,1',
  20. 'image|分类图片' => 'max:128',
  21. 'sort|排序' => 'require|integer'
  22. ];
  23. }