Class RoleController

java.lang.Object
cn.sparrow.common.controller.RoleController
@RestController public class RoleControllerextends Object
  • Constructor Details

    • RoleController

      public  RoleController()
  • Method Details

    • addRelations

      @PostMapping("/roles/relations") public  void  addRelations(@NotNull @RequestBody Set<RoleRelationPK> ids)
    • delRelations

      @DeleteMapping("/roles/relations") public  void  delRelations(@NotNull @RequestBody Set<RoleRelationPK> ids)
    • tree

      @GetMapping("/roles/getTreeByParentId") public  MyTree<Role>  tree(@Nullable @RequestParam("parentId") String parentId)