From 962901c9daff31ebcbd8d9f44d67e6434495a0c0 Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Wed, 18 Sep 2019 21:41:35 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8D=A1][=E4=BF=AE=E6=94=B9]:=E5=8D=A1?= =?UTF-8?q?=E5=AF=86=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enums/EnumCardPasswordStatus.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 mallinkService/src/main/java/com/iformall/enums/EnumCardPasswordStatus.java diff --git a/mallinkService/src/main/java/com/iformall/enums/EnumCardPasswordStatus.java b/mallinkService/src/main/java/com/iformall/enums/EnumCardPasswordStatus.java new file mode 100644 index 000000000..e12f05091 --- /dev/null +++ b/mallinkService/src/main/java/com/iformall/enums/EnumCardPasswordStatus.java @@ -0,0 +1,38 @@ +package com.iformall.enums; + +/** + * Created by Stormeye on 2019/09/17. + */ +public enum EnumCardPasswordStatus { + + + INIT(0, "初始"), + MSG_SENDING(1, "消息发送中"), + MSG_SENDED(2, "消息已发送"), + USED(3, "已使用"); + + public static EnumCardPasswordStatus getEnum(Integer code) { + for (EnumCardPasswordStatus value : values()) { + if (value.getCode().equals(code)) { + return value; + } + } + return null; + } + + private Integer code; + private String message; + + EnumCardPasswordStatus(Integer code, String message) { + this.code = code; + this.message = message; + } + + public Integer getCode() { + return code; + } + + public String getMessage() { + return message; + } +}