Class OrganizationController

java.lang.Object
cn.sparrow.common.controller.OrganizationController
@RestController public class OrganizationControllerextends Object
  • Constructor Details

    • OrganizationController

      public  OrganizationController()
  • Method Details

    • addRelations

      @PostMapping("/organizations/relations/batch") public  void  addRelations(@NotNull @RequestBody Set<OrganizationRelationPK> ids)
    • delRelations

      @DeleteMapping("/organizations/relations/batch") public  void  delRelations(@NotNull @RequestBody Set<OrganizationRelationPK> ids)
    • addRoles

      @PostMapping("/organizations/roles/batch") public  void  addRoles(@NotNull @RequestBody Set<OrganizationRolePK> ids)
    • delRoles

      @DeleteMapping("/organizations/roles/batch") public  void  delRoles(@NotNull @RequestBody Set<OrganizationRolePK> ids)
    • addLevels

      @PostMapping("/organizations/levels/batch") public  void  addLevels(@NotNull @RequestBody Set<OrganizationLevelPK> ids)
    • delLevels

      @DeleteMapping("/organizations/levels/batch") public  void  delLevels(@NotNull @RequestBody Set<OrganizationLevelPK> ids)
    • addGroups

      @PostMapping("/organizations/groups/batch") public  void  addGroups(@NotNull @RequestBody Set<OrganizationGroupPK> ids)
    • delGroups

      @DeleteMapping("/organizations/groups/batch") public  void  delGroups(@NotNull @RequestBody Set<OrganizationGroupPK> ids)
    • tree

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