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.
spring-boot-online-exam/backend/src/main/java/lsgwr/exam/vo/ExamVo.java

100 lines
2.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/***********************************************************
* @Description : 考试表,要有题目、总分数、时间限制、有效日期、创建者等字段
* @author : 梁山广(Laing Shan Guang)
* @date : 2019/5/14 07:42
* @email : liangshanguang2@gmail.com
***********************************************************/
package lsgwr.exam.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.Date;
import java.util.List;
@Data
public class ExamVo {
// 考试id
@JsonProperty("id")
private String examId;
// 考试名称
@JsonProperty("name")
private String examName;
// 考试头像
@JsonProperty("avatar")
private String examAvatar;
// 考试描述
@JsonProperty("desc")
private String examDescription;
// 单选题列表
@JsonProperty("radios")
private List<ExamQuestionSelectVo> examQuestionSelectVoRadioList;
// 多选题列表
@JsonProperty("checks")
private List<ExamQuestionSelectVo> examQuestionSelectVoCheckList;
// 判断题列表
@JsonProperty("judges")
private List<ExamQuestionSelectVo> examQuestionSelectVoJudgeList;
// 考试总分数
@JsonProperty("score")
private Integer examScore;
// 单选题分数
@JsonProperty("radioScore")
private Integer examScoreRadio;
// 多选题分数
@JsonProperty("checkScore")
private Integer examScoreCheck;
// 判断题分数
@JsonProperty("judgeScore")
private Integer examScoreJudge;
/**
* 考试的创建人根据id从用户表中查取姓名
*/
@JsonProperty("creator")
private String examCreator;
/**
* 考试限制的时间,单位为分钟
*/
@JsonProperty("elapse")
private Integer examTimeLimit;
/**
* 开始时间
*/
@JsonProperty("startDate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date examStartDate;
/**
* 结束时间
*/
@JsonProperty("endDate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date examEndDate;
/**
* 创建时间
*/
@JsonProperty("createTime")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date createTime;
/**
* 更新时间
*/
@JsonProperty("updateTime")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date updateTime;
}