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;

/**
 * @Description: 教学课程编辑参数
 * @Author: CaoZixuan
 * @Date: 2022-02-14
 */
public class TeachCourseParams {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "基础课程id")
    @NotNull(message = "请选择基础课程id")
    @Range(min = 1L, message = "请选择基础课程id")
    @DBVerify(value = "基础课程id")
    private Long basicCourseId;

    public Long getBasicCourseId() {
        return basicCourseId;
    }

    public void setBasicCourseId(Long basicCourseId) {
        this.basicCourseId = basicCourseId;
    }
}
