* @Link https://gitee.com/xmo/MineAdmin */ declare(strict_types = 1); namespace Builder\Annotation; use Attribute; use Hyperf\Di\Annotation\AbstractAnnotation; /** * 用户登录验证。 * @Annotation * @Target({"CLASS","METHOD"}) */ #[Attribute(Attribute::TARGET_CLASS | Attribute::TARGET_METHOD)] class Auth extends AbstractAnnotation { /** * scene * @var string */ public string $scene; public function __construct($value = 'default') { parent::__construct($value); $this->bindMainProperty('scene', [ $value ]); } }