20 lines
449 B
PHP
20 lines
449 B
PHP
<?php
|
|
|
|
namespace App\Kernel\Annotation;
|
|
|
|
use Attribute;
|
|
use Hyperf\Di\Annotation\AbstractAnnotation;
|
|
|
|
/**
|
|
* 管理端合伙人端权限验证
|
|
*/
|
|
#[Attribute(Attribute::TARGET_METHOD)]
|
|
class PreAuthorization extends AbstractAnnotation
|
|
{
|
|
/**
|
|
* construct.
|
|
*/
|
|
public function __construct(public bool $needLogin=true, public bool $needAuth=true, public bool $needLog = true, public string $auth="*", public string $role="*")
|
|
{}
|
|
}
|