You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.2 KiB
59 lines
1.2 KiB
package com.ccic.safeliab.entity; |
|
|
|
import com.baomidou.mybatisplus.annotation.IdType; |
|
import com.baomidou.mybatisplus.annotation.TableId; |
|
import com.baomidou.mybatisplus.annotation.TableName; |
|
import com.fasterxml.jackson.annotation.JsonFormat; |
|
import lombok.Data; |
|
import lombok.EqualsAndHashCode; |
|
import lombok.experimental.Accessors; |
|
|
|
import java.io.Serializable; |
|
|
|
@Data |
|
@EqualsAndHashCode(callSuper = false) |
|
@Accessors(chain = true) |
|
@TableName("ex_answers") |
|
public class ExAnswers extends BaseEntity implements Serializable { |
|
|
|
/** |
|
* ID |
|
*/ |
|
@TableId(value = "id", type = IdType.ID_WORKER) |
|
@JsonFormat(shape = JsonFormat.Shape.STRING) |
|
private Long id; |
|
|
|
/** |
|
* 用户ID |
|
*/ |
|
@JsonFormat(shape = JsonFormat.Shape.STRING) |
|
private Long userId; |
|
|
|
/** |
|
* 试卷ID |
|
*/ |
|
@JsonFormat(shape = JsonFormat.Shape.STRING) |
|
private Long paperId; |
|
|
|
/** |
|
* 考试ID |
|
*/ |
|
@JsonFormat(shape = JsonFormat.Shape.STRING) |
|
private Long examId; |
|
|
|
/** |
|
* 题目ID |
|
*/ |
|
@JsonFormat(shape = JsonFormat.Shape.STRING) |
|
private Long questionId; |
|
|
|
/** |
|
* 用户选择的答案 |
|
*/ |
|
private String selectedAnswer; |
|
|
|
/** |
|
* 是否正确 |
|
*/ |
|
private Integer isCorrect; |
|
}
|
|
|