Class MenuController

java.lang.Object
cn.sparrow.common.controller.MenuController
@RestController public class MenuControllerextends Object
  • Constructor Details

    • MenuController

      public  MenuController()
  • Method Details

    • getTreeByParentId

      @GetMapping("/menus/getTreeByParentId") public  MyTree<Menu>  getTreeByParentId(@Nullable @Param("parentId") String parentId)
    • getTreeByUsername

      @GetMapping("/menus/getTreeByUsername") public  MyTree<Menu>  getTreeByUsername(@NotNull @Param("username") @NotNull String username)
    • getTreeBySysroleId

      @GetMapping("/menus/getTreeBySysroleId") public  MyTree<Menu>  getTreeBySysroleId(@NotNull @Param("sysroleId") @NotNull String sysroleId)
    • getMyTree

      @GetMapping("/menus/getMyTree") public  MyTree<Menu>  getMyTree(Principal principal)
    • add

      @PostMapping("/menus/batch") public  void  add(@NotNull @RequestBody @NotNull List<Menu> menus)
    • update

      @PatchMapping("/menus/batch") public  void  update(@NotNull @RequestBody @NotNull List<Menu> menus)
    • delete

      @DeleteMapping("/menus/batch") public  void  delete(@NotNull @RequestBody @NotNull String[] ids)
    • addPermission

      @PostMapping("/menus/permissions") public  void  addPermission(@NotNull @RequestBody @NotNull MenuPermission menuPermission)
    • delPermission

      @DeleteMapping("/menus/permissions") public  void  delPermission(@NotNull @RequestBody @NotNull MenuPermission menuPermission)