Auth.php 434 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Ycbl\AdminAuth\Annotation;
  3. use Hyperf\Di\Annotation\AbstractAnnotation;
  4. /**
  5. * @Annotation
  6. * @Target({"METHOD", "CLASS"})
  7. * Class Auth
  8. */
  9. class Auth extends AbstractAnnotation
  10. {
  11. /**
  12. * @var bool
  13. */
  14. public $noNeedLogin = false;
  15. /**
  16. * @var bool
  17. */
  18. public $noNeedRight = false;
  19. public function __construct($value = null)
  20. {
  21. parent::__construct($value);
  22. }
  23. }