Files
cashier/app/admin/service/annotation/MiddlewareAnnotation.php
你的名字 ac0f12b21a 1
2025-10-15 14:53:54 +08:00

19 lines
381 B
PHP

<?php
namespace app\admin\service\annotation;
use Attribute;
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_METHOD)]
final class MiddlewareAnnotation
{
/** 过滤日志 */
const IGNORE_LOG = 'LOG';
/** 免登录 */
const IGNORE_LOGIN = 'LOGIN';
public function __construct(public string $type = '', public string|array $ignore = '')
{
}
}