package org.dromara.art.domain.bo;

import org.dromara.art.domain.ArtSchoolEnrollCode;
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.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * 学校招生代码业务对象 art_school_enroll_code
 *
 * @author ZhouWenTao
 * @date 2026-02-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ArtSchoolEnrollCode.class, reverseConvertGenerate = false)
public class ArtSchoolEnrollCodeBo extends BaseEntity {

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

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

    /**
     * 招生代码/学校代码
     */
    @NotBlank(message = "招生代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String enrollCode;
}
