37 lines
869 B
PHP
37 lines
869 B
PHP
<?php
|
|
/**
|
|
* MineAdmin is committed to providing solutions for quickly building web applications
|
|
* Please view the LICENSE file that was distributed with this source code,
|
|
* For the full copyright and license information.
|
|
* Thank you very much for using MineAdmin.
|
|
*
|
|
* @Author X.Mo<root@imoi.cn>
|
|
* @Link https://gitee.com/xmo/MineAdmin
|
|
*/
|
|
|
|
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 ]);
|
|
}
|
|
} |