feat(auth): use attribute for ignore node
- Add NodeAnnotation attribute to filter ignore nodes - Update Goods controller to use NodeAnnotation for ignore nodes - Modify Node service to handle new attribute-Enhance AdminController with ignoreNode property
This commit is contained in:
@@ -2,13 +2,12 @@
|
||||
|
||||
namespace app\admin\service\annotation;
|
||||
|
||||
use Doctrine\Common\Annotations\Annotation\Attributes;
|
||||
use Attribute;
|
||||
|
||||
/**
|
||||
* action 节点注解类
|
||||
*/
|
||||
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_METHOD)]
|
||||
#[Attribute(Attribute::IS_REPEATABLE | Attribute::TARGET_METHOD| Attribute::TARGET_PROPERTY)]
|
||||
final class NodeAnnotation
|
||||
{
|
||||
/** 过滤节点 */
|
||||
|
||||
Reference in New Issue
Block a user