package com.fizz.business.form;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.List;

/**
 * OPC 批量写数据请求表单
 */
@Data
@Schema(description = "OPC 批量写数据请求")
public class OpcBatchWriteDataForm implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 批量写数据列表
     */
    @Schema(description = "批量写数据列表")
    @NotEmpty(message = "写数据列表不能为空")
    @Valid
    private List<OpcWriteDataForm> dataList;
}

