GroupDataValidate.php 270 B

12345678910111213141516171819
  1. <?php
  2. namespace app\validate\admin;
  3. use think\Validate;
  4. class GroupDataValidate extends Validate
  5. {
  6. protected $failException = true;
  7. protected $rule = [
  8. 'status|显示状态' => 'require|in:0,1',
  9. 'sort|排序' => 'require|integer'
  10. ];
  11. }