|
@@ -0,0 +1,30 @@
|
|
|
|
+package com.weavi.ahh_v2.enums;
|
|
|
|
+
|
|
|
|
+import lombok.AllArgsConstructor;
|
|
|
|
+import lombok.Getter;
|
|
|
|
+import lombok.NoArgsConstructor;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @auther jiangzuole
|
|
|
|
+ * @date 2019-05-27
|
|
|
|
+ * @time 16:43
|
|
|
|
+ */
|
|
|
|
+@Getter
|
|
|
|
+public enum ResultEnum {
|
|
|
|
+
|
|
|
|
+ SUCCESS(0,"成功"),
|
|
|
|
+ FAILED(1,"失败"),
|
|
|
|
+ ;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ private Integer code;
|
|
|
|
+
|
|
|
|
+ private String message;
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ ResultEnum(Integer code, String message) {
|
|
|
|
+ this.code = code;
|
|
|
|
+ this.message = message;
|
|
|
|
+ }
|
|
|
|
+}
|