引入格式化工具配置;节点管理新增挂载到控制器注解中的节点;

This commit is contained in:
2023-08-29 17:51:40 +08:00
parent 55cd948e46
commit d7f2476cbe
6 changed files with 257 additions and 94 deletions

View File

@@ -5,18 +5,17 @@
// +----------------------------------------------------------------------
// | PHP交流群: 763822524
// +----------------------------------------------------------------------
// | 开源协议 https://mit-license.org
// | 开源协议 https://mit-license.org
// +----------------------------------------------------------------------
// | github开源项目https://github.com/zhongshaofa/EasyAdmin
// +----------------------------------------------------------------------
namespace app\admin\service\annotation;
use Doctrine\Common\Annotations\Annotation\Attributes;
/**
* 创建节点注解类
* 创建节点注解类.
*
* @Annotation
* @Target({"METHOD","CLASS"})
@@ -26,19 +25,23 @@ use Doctrine\Common\Annotations\Annotation\Attributes;
*/
final class NodeAnotation
{
/**
* 节点名称
* 节点名称.
* @Required()
* @var string
*/
public $title;
/**
* 是否开启权限控制
* 是否开启权限控制.
* @Enum({true,false})
* @var bool
*/
public $auth = true;
}
/**
* 节点 一般无需设置.
* @var string
*/
public $name;
}