后台服务
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
750 B

  1. package com.iformall.enums;
  2. /**
  3. *
  4. */
  5. public enum EnumDigitalAvatarOrderStatus {
  6. wait(1, "待制作"),
  7. finish(2, "制作完成"),
  8. fail(3, "制作失败"),
  9. ;
  10. public static EnumDigitalAvatarOrderStatus getEnum(Integer code) {
  11. for (EnumDigitalAvatarOrderStatus value : values()) {
  12. if (value.getCode().equals(code)) {
  13. return value;
  14. }
  15. }
  16. return null;
  17. }
  18. private Integer code;
  19. private String message;
  20. EnumDigitalAvatarOrderStatus(Integer code, String message) {
  21. this.code = code;
  22. this.message = message;
  23. }
  24. public Integer getCode() {
  25. return code;
  26. }
  27. public String getMessage() {
  28. return message;
  29. }
  30. }