更新/enums文档注释,更新.gitignore #7

Merged
pswqm3ot6 merged 2 commits from feature/wyh into develop 2 months ago

2
.gitignore vendored

@ -21,3 +21,5 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
**./.idea

@ -3,18 +3,18 @@ package lsgwr.exam.enums;
import lombok.Getter;
/**
*
* @author liangshanguang
* @Description:
*/
@Getter
public enum LoginTypeEnum {
/**
* 12
* @Description:
* 12
*/
USERNAME(1, "用户名"),
EMAIL(2, "邮箱");
// 构造函数用于初始化code和description
LoginTypeEnum(Integer type, String name) {
this.type = type;
this.name = name;

@ -8,17 +8,16 @@ 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;

@ -2,6 +2,9 @@ package lsgwr.exam.enums;
import lombok.Getter;
/**
* @Description :
*/
@Getter
public enum ResultEnum {
// 下面是本项目用到的所有错误码
@ -17,6 +20,11 @@ public enum ResultEnum {
ORDER_UPDATE_ERR(15, "考试更新异常"),
ORDER_DETAIL_EMPTY(16, "用户详情为空");
/**
* @Description: codemessage
* @param code
* @param message
*/
ResultEnum(Integer code, String message) {
this.code = code;
this.message = message;

@ -8,6 +8,9 @@ package lsgwr.exam.enums;
import lombok.Getter;
/**
* @Description:
*/
@Getter
public enum RoleEnum {
@ -18,7 +21,11 @@ public enum RoleEnum {
TEACHER(2, "教师"),
STUDENT(3, "学生");
/**
* @Description: codemessage
* @param id id
* @param role
*/
RoleEnum(Integer id, String role) {
this.id = id;
this.role = role;

Loading…
Cancel
Save