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);
|
}
|