Browse Source

上传文件至 'src/main/java/com/weavi/ahh_v2/enums'

rookies 5 years ago
parent
commit
6a2b123113
1 changed files with 30 additions and 0 deletions
  1. 30 0
      src/main/java/com/weavi/ahh_v2/enums/ResultEnum.java

+ 30 - 0
src/main/java/com/weavi/ahh_v2/enums/ResultEnum.java

@@ -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;
+    }
+}