lyh
5 天以前 fda571324684bc8d0945b3e2841305b1207fc3e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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<Department> findPageList(int page, int size, DepartmentRequest departmentRequest);
 
    @ApiOperation("获取所有多级部门数据(父子关系)")
    QueryListResponseResult<CommonJsonTree> loadTree();
 
    @ApiOperation("删除部门")
    ResponseResult deleteDepartment(String id);
 
 
    @ApiOperation("获取用户未指定的部门列表")
    QueryListResponseResult<Department> getUserNonPermDepart(String userId);
 
    @ApiOperation("获取用户指定的部门列表")
    QueryListResponseResult<Department> getUserPermDepart(String userId);
 
    @ApiOperation("获取部门未指定的审批人列表")
    QueryListResponseResult<User> getUserNonApproveDepart(String departId);
 
    @ApiOperation("获取部门已指定的审批人列表")
    QueryListResponseResult<User> getUserApproveDepart(String departId);
 
    @ApiOperation("部门指定审批人")
    ResponseResult assignAddApproveUser(String departId, Integer relativeFlag, String[] userIds);
 
    @ApiOperation("部门移除审批人")
    ResponseResult assignRemoveApproveUser(String departId, Integer relativeFlag, String[] userIds);
 
    @ApiOperation("获取部门列表信息")
    QueryListResponseResult<Department> getDepartList();
}