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

48 lines
1.2 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;
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
*/
class ControllerAnnotationBase
{
/**
* Route group prefix for the controller.
*
* @Required()
*
* @var string
*/
public $title = '';
/**
* 是否开启权限控制.
* @Enum({true,false})
* @var bool
*/
public $auth = true;
}