33 lines
502 B
PHP
33 lines
502 B
PHP
<?php
|
|
|
|
namespace app\admin\service\annotation;
|
|
|
|
use Doctrine\Common\Annotations\Annotation\Attributes;
|
|
|
|
/**
|
|
* 创建节点注解类
|
|
*
|
|
* @Annotation
|
|
* @Target({"METHOD","CLASS"})
|
|
* @Attributes({
|
|
* @Attribute("time", type = "int")
|
|
* })
|
|
*/
|
|
final class NodeAnnotation
|
|
{
|
|
|
|
/**
|
|
* 节点名称
|
|
* @Required()
|
|
* @var string
|
|
*/
|
|
public string $title;
|
|
|
|
/**
|
|
* 是否开启权限控制
|
|
* @Enum({true,false})
|
|
* @var bool
|
|
*/
|
|
public bool $auth = true;
|
|
|
|
} |