MiddlewareAnnotation.php 381 B

12345678910111213141516171819
  1. <?php
  2. namespace app\admin\service\annotation;
  3. use Attribute;
  4. #[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_METHOD)]
  5. final class MiddlewareAnnotation
  6. {
  7. /** 过滤日志 */
  8. const IGNORE_LOG = 'LOG';
  9. /** 免登录 */
  10. const IGNORE_LOGIN = 'LOGIN';
  11. public function __construct(public string $type = '', public string|array $ignore = '')
  12. {
  13. }
  14. }