package org.dromara.art.domain.bo;

import org.dromara.art.domain.ArtSchoolEnrollPlan;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 学校招生计划业务对象 art_school_enroll_plan
 *
 * @author ZhouWenTao
 * @date 2026-02-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ArtSchoolEnrollPlan.class, reverseConvertGenerate = false)
public class ArtSchoolEnrollPlanBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long planId;

    /**
     * 学校ID
     */
    @NotNull(message = "学校ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long schoolId;

    /**
     * 年份
     */
    @NotNull(message = "年份不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long year;

    /**
     * 招生省份
     */
    @NotBlank(message = "招生省份不能为空", groups = { AddGroup.class, EditGroup.class })
    private String province;

    /**
     * 分科：文/理/综(或物理/历史...)
     */
    private String subjectType;

    /**
     * 专业ID(可选，有则填)
     */
    private Long majorId;

    /**
     * 专业名称(冗余，没专业ID也能落库)
     */
    @NotBlank(message = "专业名称(冗余，没专业ID也能落库)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String majorName;

    /**
     * 学历层次：本科/专科
     */
    private String educationLevel;

    /**
     * 计划数
     */
    @NotNull(message = "计划数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long planNum;

    /**
     * 备注
     */
    private String remark;


}
