package org.dromara.art.domain.bo;

import org.dromara.art.domain.ArtSchoolName;
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_name
 *
 * @author ZhouWenTao
 * @date 2026-02-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ArtSchoolName.class, reverseConvertGenerate = false)
public class ArtSchoolNameBo extends BaseEntity {

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

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

    /**
     * 学校名称（曾用名/别名）
     */
    @NotBlank(message = "学校名称（曾用名/别名）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 名称类型：1-官方全称 2-曾用名 3-别名 4-英文名称
     */
    @NotNull(message = "名称类型：1-官方全称 2-曾用名 3-别名 4-英文名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long nameType;

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


}
