Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

37 wiersze
787 B

  1. package com.iformall.enums;
  2. /**
  3. * Created by Stormeye on 2018/08/09.
  4. */
  5. public enum EnumWxAuthotizationTemplateStatus {
  6. SUCCESS(0, "模板已设置"),
  7. Fail(1, "模板设置失败")
  8. ;
  9. public static EnumWxAuthotizationTemplateStatus getEnum(Integer code) {
  10. for (EnumWxAuthotizationTemplateStatus value : values()) {
  11. if (value.getCode().equals(code)) {
  12. return value;
  13. }
  14. }
  15. return null;
  16. }
  17. private Integer code;
  18. private String message;
  19. EnumWxAuthotizationTemplateStatus(Integer code, String message) {
  20. this.code = code;
  21. this.message = message;
  22. }
  23. public Integer getCode() {
  24. return code;
  25. }
  26. public String getMessage() {
  27. return message;
  28. }
  29. }