添加配置检查策略.

This commit is contained in:
lijiahang
2023-09-19 15:59:35 +08:00
parent 67ddf7c662
commit 39f975a93a
19 changed files with 385 additions and 129 deletions

View File

@@ -30,4 +30,6 @@ public class Const implements com.orion.lang.constant.Const {
public static final Long NONE_ID = -1L;
public static final Integer DEFAULT_VERSION = 1;
}

View File

@@ -0,0 +1,43 @@
package com.orion.ops.framework.common.enums;
import lombok.AllArgsConstructor;
import lombok.Getter;
/**
* boolean 枚举
*
* @author Jiahang Li
* @version 1.0.0
* @since 2023/9/19 10:32
*/
@Getter
@AllArgsConstructor
public enum BooleanBit {
/**
* 假
*/
FALSE(0),
/**
* 真
*/
TRUE(1),
;
private final Integer v;
public static BooleanBit of(Integer value) {
if (value == null) {
return null;
}
for (BooleanBit e : values()) {
if (e.v.equals(value)) {
return e;
}
}
return null;
}
}