asset 模块添加操作日志.

This commit is contained in:
lijiahang
2023-10-12 16:44:54 +08:00
parent 24c244cbbd
commit c9e7cb07a0
17 changed files with 235 additions and 8 deletions

View File

@@ -51,6 +51,8 @@ public interface ErrorMessage {
String USER_ABSENT = "用户不存在";
String HOST_ABSENT = "主机不存在";
String UNABLE_OPERATE_ADMIN_ROLE = "无法操作管理员账号";
String UNSUPPORTED_CHARSET = "不支持的编码 [{}]";

View File

@@ -0,0 +1,43 @@
package com.orion.ops.framework.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* 启用状态
*
* @author Jiahang Li
* @version 1.0.0
* @since 2023/10/12 16:02
*/
@Getter
@AllArgsConstructor
public enum EnableStatus {
/**
* 停用
*/
DISABLED(0),
/**
* 启用
*/
ENABLED(1),
;
private final Integer value;
public static EnableStatus of(Integer value) {
if (value == null) {
return null;
}
for (EnableStatus e : values()) {
if (e.value.equals(value)) {
return e;
}
}
return null;
}
}