mirror of
https://gitee.com/ssssssss-team/magic-api.git
synced 2026-05-07 19:07:21 +08:00
fix
This commit is contained in:
@@ -142,7 +142,7 @@ public class MagicResourceController extends MagicController implements MagicExc
|
||||
return new JsonBean<>(service.unlock(id));
|
||||
}
|
||||
|
||||
@GetMapping("/resource")
|
||||
@PostMapping("/resource")
|
||||
@ResponseBody
|
||||
public JsonBean<Map<String, TreeNode<Attributes<Object>>>> resources(MagicHttpServletRequest request) {
|
||||
Map<String, TreeNode<Group>> tree = service.tree();
|
||||
@@ -180,7 +180,7 @@ public class MagicResourceController extends MagicController implements MagicExc
|
||||
.stream()
|
||||
.filter(it -> allowVisit(request, Authorization.VIEW, it))
|
||||
.map(MagicEntity::simple)
|
||||
.map((Function<MagicEntity, TreeNode<Attributes<Object>>>) TreeNode::new)
|
||||
.map((Function<MagicEntity, TreeNode>) TreeNode::new)
|
||||
.forEach(value::addChild);
|
||||
}
|
||||
return value;
|
||||
|
||||
@@ -203,7 +203,7 @@ public class MagicWorkbenchController extends MagicController implements MagicEx
|
||||
return new JsonBean<>(true);
|
||||
}
|
||||
|
||||
@GetMapping("/search")
|
||||
@PostMapping("/search")
|
||||
@ResponseBody
|
||||
public JsonBean<List<Map<String, Object>>> search(String keyword, MagicHttpServletRequest request) {
|
||||
if (StringUtils.isBlank(keyword)) {
|
||||
|
||||
Reference in New Issue
Block a user