package org.dromara.art.domain.bo;

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

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

    /**
     * 业务类型：school/campus/college/major/dorm
     */
    @NotBlank(message = "业务类型：school/campus/college/major/dorm不能为空", groups = { AddGroup.class, EditGroup.class })
    private String bizType;

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

    /**
     * 媒体类型：1-图片 2-视频
     */
    @NotNull(message = "媒体类型：1-图片 2-视频不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long mediaType;

    /**
     * 资源URL
     */
    @NotBlank(message = "资源URL不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;

    /**
     * 封面URL(视频可用)
     */
    private String coverUrl;

    /**
     * 排序
     */
    private Long sortNo;

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


}
