package com.lxzn.api.ucenter; import com.lxzn.framework.domain.ucenter.Department; import com.lxzn.framework.domain.ucenter.User; import com.lxzn.framework.domain.ucenter.request.DepartmentRequest; import com.lxzn.framework.model.response.CommonJsonTree; import com.lxzn.framework.model.response.QueryListResponseResult; import com.lxzn.framework.model.response.QueryPageResponseResult; import com.lxzn.framework.model.response.ResponseResult; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; @Api(value = "部门管理",description = "部门管理") public interface DepartmentControllerApi { @ApiOperation("新增部门") ResponseResult addDepartment(Department department); @ApiOperation("编辑部门") ResponseResult editDepartment(String id,Department department); @ApiOperation("多级部门分页查询") @ApiImplicitParams({ @ApiImplicitParam(name="page",value = "页码",required=true,paramType="path",dataType="int"), @ApiImplicitParam(name="size",value = "每页记录数",required=true,paramType="path",dataType="int") }) QueryPageResponseResult findPageList(int page, int size, DepartmentRequest departmentRequest); @ApiOperation("获取所有多级部门数据(父子关系)") QueryListResponseResult loadTree(); @ApiOperation("删除部门") ResponseResult deleteDepartment(String id); @ApiOperation("获取用户未指定的部门列表") QueryListResponseResult getUserNonPermDepart(String userId); @ApiOperation("获取用户指定的部门列表") QueryListResponseResult getUserPermDepart(String userId); @ApiOperation("获取部门未指定的审批人列表") QueryListResponseResult getUserNonApproveDepart(String departId); @ApiOperation("获取部门已指定的审批人列表") QueryListResponseResult getUserApproveDepart(String departId); @ApiOperation("部门指定审批人") ResponseResult assignAddApproveUser(String departId, Integer relativeFlag, String[] userIds); @ApiOperation("部门移除审批人") ResponseResult assignRemoveApproveUser(String departId, Integer relativeFlag, String[] userIds); @ApiOperation("获取部门列表信息") QueryListResponseResult getDepartList(); }