hyperf-view/builder/Annotation/OperationLog.php

27 lines
526 B
PHP

<?php
declare(strict_types = 1);
namespace Builder\Annotation;
use Attribute;
use Hyperf\Di\Annotation\AbstractAnnotation;
/**
* 记录操作日志注解。
* @Annotation
* @Target({"METHOD"})
*/
#[Attribute(Attribute::TARGET_METHOD)]
class OperationLog extends AbstractAnnotation
{
/**
* 菜单名称
* @var string
*/
public string $menuName;
public function __construct($value = '')
{
parent::__construct($value);
$this->bindMainProperty('menuName', [ $value ]);
}
}