Files
ulthon_admin/extend/base/admin/service/annotation/NodeAnotationBase.php

48 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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;
}