微信后台-二维码扫描代码初始化-简化,待处理细节

This commit is contained in:
2023-09-02 11:31:39 +08:00
parent 9b614251ca
commit f0ef32ffc6
15 changed files with 238 additions and 351 deletions

View File

@@ -0,0 +1,42 @@
package com.enums;
/**
* Enum - 入场标志
*
*/
public enum EnterEnum {
ENTER(0, "入场"),
OUT(1, "出场");
public Integer value;
public String name;
EnterEnum(Integer value, String name) {
this.value = value;
this.name = name;
}
public Integer getValue() {
return value;
}
public void setValue(Integer value) {
this.value = value;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public static EnterEnum getByValue(Integer value) {
for (EnterEnum type : EnterEnum.values()) {
if (type.value.equals(value)) {
return type;
}
}
return null;
}
}