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 io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.util.Set;

/**
 * @Description: 教学学生批量新增
 * @Author: CaoZixuan
 * @Date: 2022-04-12
 */
public class TeachStudentBatchParam {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "教学班级主键")
    @NotNull(message = "请选择教学班级")
    @Range(min = 1L, message = "请选择教学班级")
    @DBVerify(value = "教学班级id",required = true)
    private Long teachClazzId;


    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "学生字典id集合")
    @NotNull(message = "请选择要添加的学生")
    private Set<Long> basicStudentIdSet;

    public Long getTeachClazzId() {
        return teachClazzId;
    }

    public void setTeachClazzId(Long teachClazzId) {
        this.teachClazzId = teachClazzId;
    }

    public Set<Long> getBasicStudentIdSet() {
        return basicStudentIdSet;
    }

    public void setBasicStudentIdSet(Set<Long> basicStudentIdSet) {
        this.basicStudentIdSet = basicStudentIdSet;
    }
}
