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
749 B

  1. package com.iformall.enums;
  2. /**
  3. * Created by Stormeye on 2018/08/09.
  4. */
  5. public enum EnumUserWechat {
  6. // 微信第三方web登录 0-已绑定,1-未绑定
  7. HAD(0, "已绑定"),
  8. NO(1, "未绑定")
  9. ;
  10. public static EnumUserWechat getEnum(Integer code) {
  11. for (EnumUserWechat 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. EnumUserWechat(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. }