package com.mes.device.request;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
|
import java.util.List;
|
|
/**
|
* 设备配置操作请求体
|
*
|
* @author mes
|
* @since 2025-07-12
|
*/
|
@Data
|
@Schema(description = "设备配置操作请求体")
|
public class DeviceConfigRequest {
|
|
@Schema(description = "设备ID", example = "1")
|
private Long deviceId;
|
|
@Schema(description = "设备配置信息")
|
private Object deviceConfig;
|
|
@Schema(description = "设备ID列表")
|
private List<Long> deviceIds;
|
|
@Schema(description = "项目ID", example = "1")
|
private Long projectId;
|
|
@Schema(description = "设备类型", example = "1")
|
private String deviceType;
|
|
@Schema(description = "设备状态", example = "1")
|
private String deviceStatus;
|
|
@Schema(description = "搜索关键词", example = "设备1")
|
private String keyword;
|
|
@Schema(description = "设备编码", example = "DEVICE001")
|
private String deviceCode;
|
|
@Schema(description = "页码", example = "1")
|
private Integer page;
|
|
@Schema(description = "每页大小", example = "10")
|
private Integer size;
|
|
// 构造函数
|
public DeviceConfigRequest() {
|
}
|
|
public DeviceConfigRequest(Long deviceId) {
|
this.deviceId = deviceId;
|
}
|
|
public DeviceConfigRequest(Long deviceId, Object deviceConfig) {
|
this.deviceId = deviceId;
|
this.deviceConfig = deviceConfig;
|
}
|
|
public DeviceConfigRequest(List<Long> deviceIds) {
|
this.deviceIds = deviceIds;
|
}
|
}
|