package com.njcn.energy.pojo.param;

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

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

/**
 * pqs
 * 重新分组
 *
 * @author cdf
 * @date 2022/3/16
 */
@Data
public class GroupArrParam {

    @ApiModelProperty("setId")
    @NotBlank(message = ValidMessage.ID_NOT_BLANK)
    private String setId;

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


    @Data
    public static class ArrItem {
        private String id;
        private String name;
        private List<String> children;
    }
}
