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

import com.hotwj.platform.config.examPaperQuestion.domain.HotExamPaperQuestion;
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_exam_paper_question
 *
 * @author shihongwei
 * @date 2025-12-23
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = HotExamPaperQuestion.class, reverseConvertGenerate = false)
public class HotExamPaperQuestionBo 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 paperId;

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

    /**
     * 问题类型
     */
    private String questionType;

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

    /**
     * 题目分值(若为空则使用原题分值)
     */
    private Long score;


}
