mirror of
https://github.com/201206030/novel.git
synced 2025-04-27 07:30:50 +00:00
feat(CommonConsts.java): 增加通用常量
This commit is contained in:
parent
e10931f4de
commit
f21bdbc218
@ -1,5 +1,6 @@
|
||||
package io.github.xxyopen.novel.core.common.constant;
|
||||
|
||||
|
||||
/**
|
||||
* 通用常量
|
||||
*
|
||||
@ -8,9 +9,46 @@ package io.github.xxyopen.novel.core.common.constant;
|
||||
*/
|
||||
public class CommonConsts {
|
||||
|
||||
private CommonConsts(){}
|
||||
/**
|
||||
* 是
|
||||
* */
|
||||
public static final Integer YES = 1;
|
||||
|
||||
public static final String YES = "yes";
|
||||
/**
|
||||
* 否
|
||||
* */
|
||||
public static final Integer NO = 0;
|
||||
|
||||
public static final String NO = "no";
|
||||
/**
|
||||
* 性别常量
|
||||
* */
|
||||
public enum SexEnum{
|
||||
|
||||
/**
|
||||
* 男
|
||||
* */
|
||||
MALE(0,"男"),
|
||||
|
||||
/**
|
||||
* 女
|
||||
* */
|
||||
FEMALE(1,"女");
|
||||
|
||||
SexEnum(int code,String desc){
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
private int code;
|
||||
private String desc;
|
||||
|
||||
public int getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user