package com.hotwj.platform.config.courseResource.domain.bo;

import com.hotwj.platform.config.courseResource.domain.HotCourseResource;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 课程-资源关联业务对象 hot_course_resource
 *
 * @author shihongwei
 * @date 2025-12-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotCourseResource.class, reverseConvertGenerate = false)
public class HotCourseResourceBo extends BaseEntity {

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

    /**
     * 公司ID
     */
    private Long companyId;

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

    /**
     * 资源类型：1=视频 2=音频 3=题目
     */
    @NotNull(message = "资源类型：1=视频 2=音频 3=题目不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long resourceType;

    /**
     * 资源ID(根据类型关联不同表)
     */
    @NotNull(message = "资源ID(根据类型关联不同表)不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long resourceId;

    /**
     * 排序值
     */
    private Long sortOrder;


}
