lyh
3 天以前 3ce27b7faf8850d101a1511a685250fe562dca18
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
package com.lxzn.api.nc;
 
import com.lxzn.framework.domain.nc.ProductInfo;
import com.lxzn.framework.domain.ucenter.Department;
import com.lxzn.framework.domain.ucenter.User;
import com.lxzn.framework.domain.ucenter.ext.UserDepartExt;
import com.lxzn.framework.model.response.CommonGenericTree;
import com.lxzn.framework.model.response.QueryListResponseResult;
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;
 
import java.util.List;
 
@Api(value = "产品信息管理",description = "产品信息管理")
public interface ProductInfoControllerApi {
 
    @ApiOperation("新增产品")
    ResponseResult addProductInfo(ProductInfo productInfo);
 
    @ApiOperation("编辑产品")
    ResponseResult editProductInfo(String id, ProductInfo productInfo);
 
    @ApiOperation("加载产品结构树")
    QueryListResponseResult<CommonGenericTree> loadProductTree();
 
    @ApiOperation("加载产品异步基本树")
    QueryListResponseResult<CommonGenericTree> loadBaseTree();
 
    @ApiOperation("异步展开节点")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 产品 2 部件 3 零件", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 产品 2 部件 3 零件",required=true,paramType="path",dataType="string")
    })
    QueryListResponseResult<CommonGenericTree> loadTree(Integer nodeType, String paramId);
 
    @ApiOperation("删除产品")
    ResponseResult deleteProductInfo(String id);
 
    @ApiOperation("检查用户是否有对产品结构树节点的查看权限 前端节点选中事件")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 产品 2 部件 3 零件", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 产品 2 部件 3 零件",required=true,paramType="path",dataType="string")
    })
    ResponseResult checkProductPerm(Integer nodeType, String paramId);
 
    @ApiOperation("给产品树节点分配可操作用户")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 产品 2 部件 3 零件", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 产品 2 部件 3 零件",required=true,paramType="path",dataType="string"),
            @ApiImplicitParam(name="relativeFlag",value = "是否向下传递 1 是 2 否", required=true, paramType="path",dataType="int")
 
    })
    ResponseResult assignAddUser(Integer nodeType, String paramId, Integer relativeFlag, String[] userIds);
 
    @ApiOperation("给产品树节点分配可操作部门")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 产品 2 部件 3 零件", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 产品 2 部件 3 零件",required=true,paramType="path",dataType="string"),
            @ApiImplicitParam(name="relativeFlag",value = "是否向下传递 1 是 2 否", required=true, paramType="path",dataType="int")
    })
    ResponseResult assignAddDepartment(Integer nodeType, String paramId, Integer relativeFlag, String[] departmentIds);
 
    @ApiOperation("获取产品树节点下已分配用户列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 产品 2 部件 3 零件", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 产品 2 部件 3 零件",required=true,paramType="path",dataType="string")
    })
    QueryListResponseResult<UserDepartExt> getUserPermsList(Integer nodeType, String paramId);
 
    @ApiOperation("获取产品树节点下未分配用户列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 产品 2 部件 3 零件", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 产品 2 部件 3 零件",required=true,paramType="path",dataType="string")
    })
    QueryListResponseResult<User> getUserNonPermsList(Integer nodeType, String paramId);
 
    @ApiOperation("获取产品树节点下已分配部门列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 产品 2 部件 3 零件", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 产品 2 部件 3 零件",required=true,paramType="path",dataType="string")
    })
    QueryListResponseResult<Department> getDepartPermsList(Integer nodeType, String paramId);
 
    @ApiOperation("获取产品树节点下未分配部门列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 产品 2 部件 3 零件", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 产品 2 部件 3 零件",required=true,paramType="path",dataType="string")
    })
    QueryListResponseResult<Department> getDepartNonPermsList(Integer nodeType, String paramId);
 
    @ApiOperation("给产品树节点分配可操作用户")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 产品 2 部件 3 零件", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 产品 2 部件 3 零件",required=true,paramType="path",dataType="string"),
            @ApiImplicitParam(name="relativeFlag",value = "是否向下传递 1 是 2 否", required=true, paramType="path",dataType="int")
 
    })
    ResponseResult assignRemoveUser(Integer nodeType, String paramId, Integer relativeFlag, String[] userIds);
 
    @ApiOperation("给产品树节点分配可操作部门")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 产品 2 部件 3 零件", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 产品 2 部件 3 零件",required=true,paramType="path",dataType="string"),
            @ApiImplicitParam(name="relativeFlag",value = "是否向下传递 1 是 2 否", required=true, paramType="path",dataType="int")
    })
    ResponseResult assignRemoveDepartment(Integer nodeType, String paramId, Integer relativeFlag, String[] departmentIds);
 
    @ApiOperation("搜索接口")
    QueryListResponseResult<CommonGenericTree> searchProductTree(String queryParam);
}