package com.mes.device.request;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.util.List;
|
|
/**
|
* 设备组操作请求体
|
*
|
* @author mes
|
* @since 2025-07-12
|
*/
|
@Data
|
@ApiModel(description = "设备组操作请求体")
|
public class DeviceGroupRequest {
|
|
@ApiModelProperty(value = "设备组ID", example = "1")
|
private Long groupId;
|
|
@ApiModelProperty(value = "设备ID", example = "1")
|
private Long deviceId;
|
|
@ApiModelProperty(value = "设备ID列表")
|
private List<Long> deviceIds;
|
|
@ApiModelProperty(value = "设备组ID列表")
|
private List<Long> groupIds;
|
|
@ApiModelProperty(value = "设备组配置信息")
|
private Object groupConfig;
|
|
@ApiModelProperty(value = "设备角色", example = "MEMBER")
|
private String deviceRole;
|
|
// 构造函数
|
public DeviceGroupRequest() {
|
}
|
|
public DeviceGroupRequest(Long groupId) {
|
this.groupId = groupId;
|
}
|
|
public DeviceGroupRequest(Long groupId, Long deviceId) {
|
this.groupId = groupId;
|
this.deviceId = deviceId;
|
}
|
|
public DeviceGroupRequest(Long groupId, Long deviceId, String deviceRole) {
|
this.groupId = groupId;
|
this.deviceId = deviceId;
|
this.deviceRole = deviceRole;
|
}
|
|
public DeviceGroupRequest(Long groupId, List<Long> deviceIds) {
|
this.groupId = groupId;
|
this.deviceIds = deviceIds;
|
}
|
|
public DeviceGroupRequest(Long groupId, Object groupConfig) {
|
this.groupId = groupId;
|
this.groupConfig = groupConfig;
|
}
|
|
public DeviceGroupRequest(List<Long> groupIds) {
|
this.groupIds = groupIds;
|
}
|
}
|