package com.template.model.request;

import lombok.Data;

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


/**
 * <p>
 *
 * </p>
 *
 * @author ceshi
 * @since 2023-12-04
 */
@Data
public class insertSectionRequest {

    /**
     * 年级ID
     */
    @NotNull(message = "年级不能为空")
    private Integer gradeId;

    /**
     * 学期ID
     */
    @NotNull(message = "学期不能为空")
    private Integer termId;

    /**
     * 考试类型
     */
    @NotEmpty(message = "考试类型不能为空")
    private List<Integer> examTypes;

    /**
     * 及格线
     */
    @NotNull(message = "及格线不能为空")
    private Double passLine;

    /**
     * 良好线
     */
    @NotNull(message = "良好线不能为空")
    private Double goodLine;

    /**
     * 优秀线
     */
    @NotNull(message = "优秀线不能为空")
    private Double excellentLine;

    /**
     * 科目明细集合
     */
    @NotEmpty(message = "科目明细不能为空")
    List<sectionDetailRequest> details;

}
