package com.xinyilu.system.domain.dto;

import com.xinyilu.common.core.domain.BaseEntity;
import com.xinyilu.common.custominterface.Insert;
import com.xinyilu.common.custominterface.Update;
import lombok.Data;
import lombok.EqualsAndHashCode;

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

/**
 * @Description 个人成绩修改参数实体类
 * @Author 纪寒
 * @Date 2022-08-25 11:15:30
 * @Version 1.0
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TestItemScoreInfoUpdateDTO extends BaseEntity {
    private static final long serialVersionUID = 6062802344543179109L;

    /**
     * 班级id
     */
    @NotNull(message = "班级信息不能为空", groups = {Insert.class, Update.class})
    private Long classId;

    /**
     * 学生id
     */
    @NotNull(message = "学生信息不能为空", groups = {Insert.class, Update.class})
    private Long studentId;

    /**
     * 批次编码
     */
    @NotBlank(message = "批次信息不能为空", groups = {Insert.class, Update.class})
    private String batchCode;

    /**
     * 测试项目成绩信息集合
     */
    @Valid
    private List<ItemStudentScoreDTO> itemScoreList;
}
