mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-01 23:42:48 +08:00
49 lines
1.2 KiB
PHP
49 lines
1.2 KiB
PHP
<?php
|
||
|
||
// +----------------------------------------------------------------------
|
||
// | EasyAdmin
|
||
// +----------------------------------------------------------------------
|
||
// | PHP交流群: 763822524
|
||
// +----------------------------------------------------------------------
|
||
// | 开源协议 https://mit-license.org
|
||
// +----------------------------------------------------------------------
|
||
// | github开源项目:https://github.com/zhongshaofa/EasyAdmin
|
||
// +----------------------------------------------------------------------
|
||
|
||
namespace app\admin\service\annotation;
|
||
|
||
use Doctrine\Common\Annotations\Annotation\Attributes;
|
||
use Doctrine\Common\Annotations\Annotation\Required;
|
||
use Doctrine\Common\Annotations\Annotation\Target;
|
||
|
||
/**
|
||
* Class ControllerAnnotation
|
||
*
|
||
* @Annotation
|
||
* @Target("CLASS")
|
||
* @Attributes({
|
||
* @Attribute("title", type="string"),
|
||
* })
|
||
*
|
||
* @since 2.0
|
||
*/
|
||
final class ControllerAnnotation
|
||
{
|
||
|
||
/**
|
||
* Route group prefix for the controller
|
||
*
|
||
* @Required()
|
||
*
|
||
* @var string
|
||
*/
|
||
public $title = '';
|
||
|
||
/**
|
||
* 是否开启权限控制
|
||
* @Enum({true,false})
|
||
* @var bool
|
||
*/
|
||
public $auth = true;
|
||
|
||
} |