feat(auth): add support for ignoring node authentication via annotation

- Add checkNodeAnnotationAttrAuth method to AuthService for annotation-based auth control
- Update checkAuth method to use the new annotation check-Modify Goods controller to use NodeAnnotation for specifying auth requirements
- Remove unused library imports in config-admin.js
This commit is contained in:
wolfcode
2025-02-14 11:36:07 +08:00
parent 8e488fb46c
commit b55dd8f67a
3 changed files with 45 additions and 25 deletions

View File

@@ -45,7 +45,7 @@ class Goods extends AdminController
return $this->fetch();
}
#[NodeAnnotation(title: '入库', auth: true)]
#[NodeAnnotation(title: '入库', auth: false)]
public function stock(Request $request, $id): string
{
$row = $this->model->find($id);