脚手架完善
This commit is contained in:
parent
e81550e9c2
commit
13a5838f55
|
|
@ -1,54 +0,0 @@
|
|||
package com.czg.constant;
|
||||
|
||||
/**
|
||||
* 全局常量类
|
||||
* @author tankaikai
|
||||
* @since 2025-02-11 14:35
|
||||
*/
|
||||
public interface GlobalConstant {
|
||||
|
||||
/**
|
||||
* 有效状态
|
||||
*/
|
||||
interface Status {
|
||||
/**
|
||||
* 启用
|
||||
*/
|
||||
int ENABLE = 1;
|
||||
/**
|
||||
* 禁用
|
||||
*/
|
||||
int DISABLE = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* 逻辑删除
|
||||
*/
|
||||
interface IsDel {
|
||||
/**
|
||||
* 正常
|
||||
*/
|
||||
int NORMAL = 0;
|
||||
|
||||
/**
|
||||
* 正常
|
||||
*/
|
||||
int DELETED = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* 是否
|
||||
*/
|
||||
interface YesNo {
|
||||
/**
|
||||
* 正常
|
||||
*/
|
||||
int YES = 1;
|
||||
|
||||
/**
|
||||
* 正常
|
||||
*/
|
||||
int NO = 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
package com.czg.enums;
|
||||
|
||||
/**
|
||||
* 逻辑删除枚举
|
||||
*
|
||||
* @author tankaikai
|
||||
* @since 2025-02-11 14:55
|
||||
*/
|
||||
public enum DeleteEnum {
|
||||
/**
|
||||
* 是(删除)
|
||||
*/
|
||||
DELETED(1),
|
||||
/**
|
||||
* 否(未删除)
|
||||
*/
|
||||
NORMAL(0);
|
||||
|
||||
private int value;
|
||||
|
||||
DeleteEnum(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public int value() {
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,21 @@
|
|||
package com.czg.enums;
|
||||
|
||||
/**
|
||||
* 有效状态枚举
|
||||
* @author tankaikai
|
||||
* @since 2025-02-11 14:54
|
||||
*/
|
||||
public enum StatusEnum {
|
||||
DISABLE(0),
|
||||
ENABLED(1);
|
||||
|
||||
private final int value;
|
||||
|
||||
StatusEnum(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public int value() {
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue