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
package com.lxzn.api.nc;
 
import com.lxzn.framework.domain.nc.DeviceGroup;
import com.lxzn.framework.domain.ucenter.Department;
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 DeviceGroupControllerApi {
    @ApiOperation("新增设备分组")
    ResponseResult addDeviceGroup(DeviceGroup deviceGroup);
    @ApiOperation("编辑设备分组")
    ResponseResult editDeviceGroup(String id, DeviceGroup deviceGroup);
    @ApiOperation("删除设备分组")
    ResponseResult deleteDeviceGroup(String id);
 
    @ApiOperation("获取设备树节点下已分配部门列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="groupId",value = "分组id",required=true,paramType="path",dataType="string")
    })
    QueryListResponseResult<Department> getDepartPermsList(String groupId);
 
    @ApiOperation("获取设备树节点下未分配部门列表")
    @ApiImplicitParams({
            @ApiImplicitParam(name="groupId",value = "分组id",required=true,paramType="path",dataType="string")
    })
    QueryListResponseResult<Department> getDepartNonPermsList(String groupId);
 
 
    @ApiOperation("给设备树节点分配可操作部门")
    @ApiImplicitParams({
            @ApiImplicitParam(name="groupId",value = "分组id ",required=true,paramType="path",dataType="string"),
            @ApiImplicitParam(name="relativeFlag",value = "是否向下传递 1 是 2 否", required=true, paramType="path",dataType="int")
 
    })
    ResponseResult assignAddDepartment(String groupId, Integer relativeFlag, String[] departmentIds);
 
    @ApiOperation("移除设备树节点的操作部门")
    @ApiImplicitParams({
            @ApiImplicitParam(name="groupId",value = "分组id ",required=true,paramType="path",dataType="string"),
            @ApiImplicitParam(name="relativeFlag",value = "是否向下传递 1 是 2 否", required=true, paramType="path",dataType="int")
 
    })
    ResponseResult assignRemoveDepartment(String groupId, Integer relativeFlag, String[] departmentIds);
}