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/QuestionCreateVo.java

63 lines
1.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-06-02 13:26
* @email : liangshanguang2@gmail.com
***********************************************************/
package lsgwr.exam.vo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.util.List;
/**
* 创建问题的实体类
*/
@Data
public class QuestionCreateVo {
/**
* 题目名称
*/
@JsonProperty("name")
private String questionName;
@JsonProperty("desc")
private String questionDescription;
/**
* 题目的分数,默认值是5
*/
@JsonProperty("score")
private Integer questionScore = 5;
/**
* 题目的创建者的id从token中解析得到
*/
@JsonProperty("creator")
private String questionCreatorId;
/**
* 问题的难度的id
*/
@JsonProperty("level")
private Integer questionLevelId;
/**
* 问题的类型(单选、多选、判断等)
*/
@JsonProperty("type")
private Integer questionTypeId;
/**
* 题目的类别表,从内容角度划分,比如数学、语文、英语等
*/
@JsonProperty("category")
private Integer questionCategoryId;
/**
* 问题的选项列表带上了是否是答案的true和false
*/
@JsonProperty("options")
private List<QuestionOptionCreateVo> questionOptionCreateVoList;
}