AuthGroup.php 790 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // |
  4. // +----------------------------------------------------------------------
  5. // |
  6. // +----------------------------------------------------------------------
  7. // |
  8. // +----------------------------------------------------------------------
  9. // |
  10. // +----------------------------------------------------------------------
  11. namespace app\admin\validate;
  12. use \think\Validate;
  13. /**
  14. * 用户组验证器
  15. */
  16. class AuthGroup extends Validate
  17. {
  18. //定义验证规则
  19. protected $rule = [
  20. 'title' => 'require',
  21. ];
  22. //定义验证提示
  23. protected $message = [
  24. 'title.require' => '用户组名称不得为空',
  25. ];
  26. //定义验证场景
  27. protected $scene = [
  28. ];
  29. }