package com.njcn.gather.aireport.testreport.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class TestReportGroupSaveParam {

    @ApiModelProperty("分组列表")
    @Valid
    @NotEmpty(message = "分组列表不能为空")
    private List<GroupItem> groups;

    @Data
    public static class GroupItem {
        @ApiModelProperty("组号")
        @NotNull(message = "组号不能为空")
        private Integer groupNo;

        @ApiModelProperty("监测点ID列表")
        @NotEmpty(message = "监测点列表不能为空")
        private List<String> pointIds;
    }
}
