Files
Arbitrate-Backend/ruoyi-common/src/main/java/com/ruoyi/common/enums/YesOrNoEnum.java
T
2023-11-22 13:58:34 +08:00

34 lines
486 B
Java

package com.ruoyi.common.enums;
/**
* @author wangqiong
* @description 是否枚举
* @date 2023-11-17 14:05
*/
public enum YesOrNoEnum
{
NO(0, "否"),
YES(1, "是"),
;
private final Integer code;
private final String text;
YesOrNoEnum(Integer code, String text)
{
this.code = code;
this.text = text;
}
public Integer getCode()
{
return code;
}
public String getText()
{
return text;
}
}