|
@@ -0,0 +1,31 @@
|
|
|
+package com.fdkankan.common.constant;
|
|
|
+
|
|
|
+/**
|
|
|
+ * <p>
|
|
|
+ 是否成功状态枚举
|
|
|
+ * </p>
|
|
|
+ * @author dengsixing
|
|
|
+ * @date 2022/1/28
|
|
|
+ **/
|
|
|
+public enum CommonSuccessStatus {
|
|
|
+
|
|
|
+ Fail(-1, "失败"),
|
|
|
+ SUCCESS((1, "成功");
|
|
|
+
|
|
|
+ private Integer code;
|
|
|
+ private String message;
|
|
|
+
|
|
|
+ private CommonSuccessStatus(Integer code, String message) {
|
|
|
+ this.code = code;
|
|
|
+ this.message = message;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer code() {
|
|
|
+ return code;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String message() {
|
|
|
+ return message;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|