Sfoglia il codice sorgente

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

rookies 5 anni fa
parent
commit
6a2b123113
1 ha cambiato i file con 30 aggiunte e 0 eliminazioni
  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;
+    }
+}