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.teachcloud.common.annotation.DBVerify;
import com.qmth.teachcloud.common.annotation.EditKey;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

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

/**
 * @Description: 教学班级编辑参数
 * @Author: CaoZixuan
 * @Date: 2022-02-11
 */
public class TeachClazzParams {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "班级id（修改时必填）")
    @NotEmpty
//    @Range(min = 1L,message = "请选择班级")
    private List<Long> idList;

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "教学课程id")
    @NotNull(message = "教学课程id")
//    @Range(min = 1L, message = "请选择课程")
    private Long teachCourseId;

    public List<Long> getIdList() {
        return idList;
    }

    public void setIdList(List<Long> idList) {
        this.idList = idList;
    }

    public Long getTeachCourseId() {
        return teachCourseId;
    }

    public void setTeachCourseId(Long teachCourseId) {
        this.teachCourseId = teachCourseId;
    }
}
