This commit is contained in:
张良(004796)
2024-01-22 12:43:40 +08:00
parent 827c12b2ca
commit 351642d1d4
17 changed files with 469 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
package com.ruoyi.cai.enums.user;
import lombok.Getter;
@Getter
public enum UserErrorLogHomeIndexEnum {
VIDEO("video","直播"),
OTHER("other","其他"),
;
private final String code;
private final String name;
UserErrorLogHomeIndexEnum(String code, String name) {
this.code = code;
this.name = name;
}
}

View File

@@ -0,0 +1,28 @@
package com.ruoyi.cai.enums.user;
import lombok.Getter;
@Getter
public enum UserErrorLogType {
SCREEN_SHOT(1,"截屏"),
SCREEN_RECORDING(2,"录屏"),
;
private final Integer code;
private final String name;
UserErrorLogType(Integer code, String name) {
this.code = code;
this.name = name;
}
public static UserErrorLogType getByCode(Integer type) {
UserErrorLogType[] values = values();
for (UserErrorLogType value : values) {
if(value.getCode().equals(type)){
return value;
}
}
return null;
}
}