Class EmployeeController

java.lang.Object
cn.sparrow.common.controller.EmployeeController
@RestController public class EmployeeControllerextends Object
Author:
fansword
  • Constructor Details

    • EmployeeController

      public  EmployeeController()
  • Method Details

    • tree

      @GetMapping("/employees/getTreeByParentId") public  MyTree<Employee>  tree(@Nullable @RequestParam("parentId") String parentId)
    • add

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

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

      @DeleteMapping("/employees/batch") public  void  delete(@NotNull @RequestBody List<String> ids)
    • addRoles

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

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

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

      @DeleteMapping("/employees/levels/batch") public  void  delLevels(@NotNull @RequestBody Set<EmployeeOrganizationLevelPK> ids)
    • addRelations

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

      @DeleteMapping("/employees/relations/batch") public  void  delRelations(@NotNull @RequestBody Set<EmployeeRelationPK> ids)