| 123456789101112131415161718192021222324252627282930313233 |
- 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;
- }
- }
|