package cn.iocoder.yudao.module.knowledge.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;


@Data
@TableName(value = "t_test_paper_question_stem", autoResultMap = true)
@Schema(description = "试卷题干类")
@Accessors(chain = true)
public class TTestPaperQuestionStem extends BaseDO {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "培训id")
    private Long trainId;

    @Schema(description = "员工id")
    private Long userId;

    @Schema(description = "员工姓名")
    private String userName;

    @Schema(description = "试卷id", example = "1")
    private Long testPaperInfoId;

    @Schema(description = "文件地址", example = "/dev/dsdhsd.doc")
    private String fileUrl;

    @Schema(description = "内容", example = "123")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Content content;

    @Schema(description = "类型 0:单选题1:多选题 2:判断题3:填空题4:简答题", example = "1")
    private String type;

    @Schema(description = "级别 0:容易1:较易2:普通3:较难4:困难", example = "1")
    private String level;

    @Schema(description = "解析", example = "fdjasdnfj")
    private String analysis;

    @Schema(description = "正确答案", example = "A")
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> rightAnswers;

    @Schema(description = "题干编码", example = "a01")
    private String code;

    @Schema(description = "题干id", example = "34")
    private Long tQuestionStemId;

    @Schema(description = "分值", example = "5")
    private double score;

    @Schema(description = "序号", example = "1")
    private String orders;

    @Schema(description = "用户标识 用户标识 千人千卷有值", example = "1")
    private String usercode;


}
