智能仲裁后端服务

YesOrNoEnum.java 486B

123456789101112131415161718192021222324252627282930313233
  1. package com.ruoyi.common.enums;
  2. /**
  3. * @author wangqiong
  4. * @description 是否枚举
  5. * @date 2023-11-17 14:05
  6. */
  7. public enum YesOrNoEnum
  8. {
  9. NO(0, "否"),
  10. YES(1, "是"),
  11. ;
  12. private final Integer code;
  13. private final String text;
  14. YesOrNoEnum(Integer code, String text)
  15. {
  16. this.code = code;
  17. this.text = text;
  18. }
  19. public Integer getCode()
  20. {
  21. return code;
  22. }
  23. public String getText()
  24. {
  25. return text;
  26. }
  27. }