feat: 日志模块

This commit is contained in:
fit2cloud-chenyw
2024-01-09 10:49:38 +08:00
parent c19b17921e
commit ee8db44375
13 changed files with 149 additions and 2 deletions

View File

@@ -1,5 +1,7 @@
package io.dataease.constant;
import java.util.Arrays;
public enum LogOT {
CREATE(1, "OPERATE_TYPE_CREATE"),
MODIFY(2, "OPERATE_TYPE_MODIFY"),
@@ -23,6 +25,10 @@ public enum LogOT {
this.name = name;
}
public static LogOT fromValue(Integer value) {
return Arrays.stream(values()).filter(v -> v.value.equals(value)).findFirst().get();
}
public Integer getValue() {
return value;
}

View File

@@ -1,5 +1,7 @@
package io.dataease.constant;
import java.util.Arrays;
public enum LogST {
PANEL(1, "SOURCE_TYPE_PANEL"),
SCREEN(2, "SOURCE_TYPE_SCREEN"),
@@ -31,6 +33,10 @@ public enum LogST {
this.name = name;
}
public static LogST fromValue(Integer value) {
return Arrays.stream(values()).filter(v -> v.value.equals(value)).findFirst().get();
}
LogST() {
}
}