package com.njcn.csdevice.pojo.param;

import com.njcn.web.constant.ValidMessage;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 重新分组
 *
 * @author xuyang
 * @date 2023/6/19
 */
@Data
public class GroupArrParam {

    @ApiModelProperty("数据集id")
    @NotBlank(message = ValidMessage.ID_NOT_BLANK)
    private String setId;

    @ApiModelProperty("data")
    @NotEmpty(message = "数据不能为空")
    private List<ArrItem> data;


    @Data
    public static class ArrItem {
        @ApiModelProperty("组id")
        private String id;
        @ApiModelProperty("组名称")
        private String name;
        @ApiModelProperty("组是否展示 0:不展示 1:展示")
        private Integer isShow;
        @ApiModelProperty("指标集合")
        private List<String> children;
    }
}
