删除 yes or no 枚举
This commit is contained in:
@@ -16,12 +16,12 @@ public interface SystemConstants {
|
||||
* 是否:是
|
||||
* 状态:允许,开启
|
||||
*/
|
||||
public static final Integer ONE = 1;
|
||||
public static final int ONE = 1;
|
||||
/**
|
||||
* 是否:否
|
||||
* 状态:进制,关闭
|
||||
*/
|
||||
public static final Integer ZERO = 0;
|
||||
public static final int ZERO = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
package com.czg.enums;
|
||||
|
||||
/**
|
||||
* 是否枚举
|
||||
* @author tankaikai
|
||||
* @since 2025-02-11 14:56
|
||||
*/
|
||||
public enum YesNoEnum {
|
||||
/**
|
||||
* 是(删除)
|
||||
*/
|
||||
YES(1),
|
||||
/**
|
||||
* 否(未删除)
|
||||
*/
|
||||
NO(0);
|
||||
|
||||
private int value;
|
||||
|
||||
YesNoEnum(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public int value() {
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user