类 DepartmentController

java.lang.Object
plus.hiver.module.system.controller.DepartmentController

@RestController @RequestMapping("/hiver/department") @CacheConfig(cacheNames="department") @Transactional public class DepartmentController extends Object
部门管理接口

尊重知识产权,CV 请保留版权,海文科技 https://hiver.cc 出品,不允许非法使用,后果自负

作者:
Yazhi Li
  • 构造器详细资料

    • DepartmentController

      public DepartmentController()
  • 方法详细资料

    • getByParentId

      @GetMapping("/getByParentId/{parentId}") public plus.hiver.common.api.Result<List<plus.hiver.common.entity.Department>> getByParentId(@PathVariable Long parentId, @RequestParam(required=false,defaultValue="true") Boolean openDataFilter)
    • add

      @PostMapping("/add") public plus.hiver.common.api.Result add(@RequestBody plus.hiver.common.entity.Department department)
    • edit

      @PostMapping("/edit") public plus.hiver.common.api.Result edit(@RequestBody plus.hiver.common.entity.Department department, @RequestParam(required=false) Long[] mainHeader, @RequestParam(required=false) Long[] viceHeader)
    • delByIds

      @PostMapping("/delByIds") public plus.hiver.common.api.Result delByIds(@RequestParam Long[] ids)
    • deleteRecursion

      public void deleteRecursion(Long id, Long[] ids)
    • searchByTitle

      @GetMapping("/search") public plus.hiver.common.api.Result<List<plus.hiver.common.entity.Department>> searchByTitle(@RequestParam String title, @RequestParam(required=false,defaultValue="true") Boolean openDataFilter)
    • setInfo

      public void setInfo(List<plus.hiver.common.entity.Department> list)