mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 23:42:48 +08:00
48 lines
1.1 KiB
PHP
48 lines
1.1 KiB
PHP
<?php
|
||
|
||
// +----------------------------------------------------------------------
|
||
// | ulthon_admin
|
||
// +----------------------------------------------------------------------
|
||
// | PHP交流群: 207160418
|
||
// +----------------------------------------------------------------------
|
||
// | 开源协议 http://license.coscl.org.cn/MulanPSL2
|
||
// +----------------------------------------------------------------------
|
||
// | gitee开源项目:https://gitee.com/ulthon/ulthon_admin
|
||
// +----------------------------------------------------------------------
|
||
|
||
namespace base\admin\service\annotation;
|
||
|
||
use Doctrine\Common\Annotations\Annotation\Attributes;
|
||
|
||
/**
|
||
* 创建节点注解类.
|
||
*
|
||
* @Annotation
|
||
* @Target({"METHOD","CLASS"})
|
||
* @Attributes({
|
||
* @Attribute("time", type = "int")
|
||
* })
|
||
*/
|
||
class NodeAnotationBase
|
||
{
|
||
/**
|
||
* 节点名称.
|
||
* @Required()
|
||
* @var string
|
||
*/
|
||
public $title;
|
||
|
||
/**
|
||
* 是否开启权限控制.
|
||
* @Enum({true,false})
|
||
* @var bool
|
||
*/
|
||
public $auth = true;
|
||
|
||
/**
|
||
* 节点 一般无需设置.
|
||
* @var string
|
||
*/
|
||
public $name;
|
||
}
|