parent
195cf3f323
commit
a2cfb89950
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,33 @@
|
||||
package com.ibeetl.jlw.enums;
|
||||
|
||||
import cn.jlw.util.EnumUtil;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* 进行中 ING
|
||||
* 已结束 END
|
||||
* 未开始 READY
|
||||
*/
|
||||
public enum StartStatusEnum {
|
||||
// 进行中
|
||||
ING(0, "进行中"),
|
||||
// 已结束
|
||||
END(1, "已结束"),
|
||||
// 未开始
|
||||
READY(-1, "未开始");
|
||||
@Getter
|
||||
// 可以转换成中文
|
||||
// @JsonValue
|
||||
private String text;
|
||||
@Getter
|
||||
private Integer code;
|
||||
|
||||
StartStatusEnum(Integer code, String text) {
|
||||
this.text = text;
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public static StartStatusEnum getByCode(Integer code) {
|
||||
return EnumUtil.getByFieldWithValue(StartStatusEnum.class, "code", code);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue