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

29 lines
691 B

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