后台服务
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.

43 lines
824 B

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