package com.qmth.distributed.print.business.bean.params;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qmth.distributed.print.business.bean.dto.CourseWeightDto;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

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

/**
 * @Description: 课程权重设置参数
 * @Author: CaoZixuan
 * @Date: 2024-03-01
 */
public class ObeCourseWeightParam {

    @ApiModelProperty("课程大纲id")
    @JsonSerialize(using = ToStringSerializer.class)
    @NotNull(message = "缺少课程大纲id")
    @Range(min = 1L, message = "缺少课程大纲id")
    private Long obeCourseOutlineId;

    @ApiModelProperty("课程权重表单")
    @NotEmpty(message = "缺少权重设置表单")
    private List<CourseWeightDto> submitForm;

    public Long getObeCourseOutlineId() {
        return obeCourseOutlineId;
    }

    public void setObeCourseOutlineId(Long obeCourseOutlineId) {
        this.obeCourseOutlineId = obeCourseOutlineId;
    }

    public List<CourseWeightDto> getSubmitForm() {
        return submitForm;
    }

    public void setSubmitForm(List<CourseWeightDto> submitForm) {
        this.submitForm = submitForm;
    }
}
