package com.mes.device.request;
|
|
import io.swagger.v3.oas.annotations.media.ArraySchema;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import lombok.Data;
|
|
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotNull;
|
import java.util.List;
|
|
/**
|
* 玻璃写入请求
|
*/
|
@Data
|
@Schema(name = "DeviceGlassFeedRequest", description = "设备玻璃写入请求")
|
public class DeviceGlassFeedRequest {
|
|
@NotNull
|
@Schema(description = "设备ID", required = true)
|
private Long deviceId;
|
|
@ArraySchema(schema = @Schema(description = "玻璃ID列表", example = "GLS001"), minItems = 1)
|
private List<String> glassIds;
|
|
@Schema(description = "进片位置标识(与控制参数中的 positionMappings 对应)")
|
private String positionCode;
|
|
@Schema(description = "直接指定的位置值(优先级高于 positionCode)")
|
private Integer positionValue;
|
|
@Schema(description = "是否自动写入请求字", defaultValue = "true")
|
private Boolean triggerRequest = true;
|
}
|