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/enums/QuestionEnum.java

30 lines
735 B

/***********************************************************
* @Description : 问题类型的的枚举
* @author : 梁山广(Laing Shan Guang)
* @date : 2019-05-18 12:00
* @email : liangshanguang2@gmail.com
***********************************************************/
package lsgwr.exam.enums;
import lombok.Getter;
@Getter
public enum QuestionEnum {
/**
* 问题类型
*/
RADIO(1, "单选题"),
CHECK(2, "多选题"),
JUDGE(3, "判断题");
//构造函数,用于创建一个新的题目类型实例
QuestionEnum(Integer id, String role) {
this.id = id;
this.role = role;
}
private Integer id;// 角色id
private String role;// 角色名称
}