package com.xinyilu.system.domain.dto;

import com.xinyilu.common.custominterface.Insert;
import com.xinyilu.common.custominterface.Update;
import com.xinyilu.system.domain.testItem.TestItems;
import com.xinyilu.system.domain.testScoreBatchinfo.TestScoreBatch;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author ljh
 * @version 1.0
 * Create by 2022/8/25 14:02
 * 批次项目关系实体类
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TestScoreBatchDTO extends TestScoreBatch implements Serializable {

    /**
     * 项目名称集合
     */
    private List<TestItems> itemBatchInfoList;

    /**
     * 项目id集合
     */
    @NotNull(message = "所属项目不能位空", groups = {Insert.class, Update.class})
    private List<Long> itemBatchInfoIdList;

    /**
     * 新增项目集合
     */
    private List<TestScoreBatch> insertItemBatchInfoList;


}
