package com.gxwebsoft.hjm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.util.List;

import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 黄家明_题目
 *
 * @author 科技小王子
 * @since 2025-06-02 12:59:49
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(name = "HjmQuestions对象", description = "黄家明_题目")
public class HjmQuestions implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "自增ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "课程ID")
    private Integer courseId;

    @Schema(description = "课程名称")
    @TableField(exist = false)
    private String courseName;

    @Schema(description = "类型 0choice 1fill 2essay")
    private Integer type;

    @Schema(description = "题目")
    private String question;

    @Schema(description = "正确答案")
    private String correctAnswer;

    @Schema(description = "难度，0简单 1中等 2难")
    private Integer difficulty;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "排序(数字越小越靠前)")
    private Integer sortNumber;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "状态, 0正常, 1冻结")
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    private Integer deleted;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Schema(description = "正确答案")
    @TableField(exist = false)
    private Integer choices;
//
//    @Schema(description = "选项A")
//    @TableField(exist = false)
//    private String choicesA;
//
//    @Schema(description = "选项B")
//    @TableField(exist = false)
//    private String choicesB;
//
//    @Schema(description = "选项C")
//    @TableField(exist = false)
//    private String choicesC;
//
//    @Schema(description = "选项D")
//    @TableField(exist = false)
//    private String choicesD;

    @Schema(description = "选项列表")
    @TableField(exist = false)
    private List<HjmChoices> choicesList;

}
