lyh
8 小时以前 371365543363969fd3afcc404440c838817ecc3d
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
package com.lxzn.api.nc;
 
import com.lxzn.framework.domain.nc.DeviceInfo;
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;
 
@Api(value = "设备管理",description = "设备管理")
public interface DeviceInfoControllerApi {
    @ApiOperation("新增设备")
    ResponseResult addDeviceInfo(DeviceInfo deviceInfo);
    @ApiOperation("编辑设备属性")
    ResponseResult editDeviceInfo(String id, DeviceInfo deviceInfo);
    @ApiOperation("删除设备")
    ResponseResult deleteDeviceInfo(String id);
    @ApiOperation("获取设备树")
    QueryListResponseResult<CommonGenericTree> loadTree();
 
    @ApiOperation("获取设备树节点下已分配用户列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 设备分组 2 设备", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 设备分组 2 设备",required=true,paramType="path",dataType="string")
    })
    QueryListResponseResult<UserDepartExt> getUserPermsList(Integer nodeType, String paramId);
 
    @ApiOperation("获取设备树节点下未分配用户列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 设备分组 2 设备", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 设备分组 2 设备",required=true,paramType="path",dataType="string")
    })
    QueryListResponseResult<User> getUserNonPermsList(Integer nodeType, String paramId);
 
    @ApiOperation("检查用户是否有对设备树节点的查看权限 前端节点选中事件")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 设备分组 2 设备", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 设备分组 2 设备",required=true,paramType="path",dataType="string")
    })
    ResponseResult checkDevicePerm(Integer nodeType, String paramId);
 
    @ApiOperation("给设备树节点分配可操作用户")
    @ApiImplicitParams({
            @ApiImplicitParam(name="nodeType",value = "检查范围 1 设备分组 2 设备 ", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 设备分组 2 设备 ",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 设备 ", required=true, paramType="path",dataType="int"),
            @ApiImplicitParam(name="paramId",value = "对应的节点id 1 设备分组 2 设备 ",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("获取设备列表接口")
    QueryListResponseResult<DeviceInfo> findListAll();
 
    @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> loadDepartTree(Integer nodeType, String paramId);
 
 
    @ApiOperation("校验设备编号")
    ResponseResult validateDeviceNo(String deviceNo);
 
 
}