From 36a143b19cc919c9a814d065029b2340ef7330d7 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Mon, 13 Jun 2022 14:56:25 +0800
Subject: [PATCH] 20220606

---
 src/main/java/com/xcong/farmer/cms/common/response/Result.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/xcong/farmer/cms/common/response/Result.java b/src/main/java/com/xcong/farmer/cms/common/response/Result.java
index bdb5333..6da0933 100644
--- a/src/main/java/com/xcong/farmer/cms/common/response/Result.java
+++ b/src/main/java/com/xcong/farmer/cms/common/response/Result.java
@@ -16,7 +16,7 @@
 
     private static final long serialVersionUID = 1L;
 
-    private static final int SUCCESS = 0;
+    private static final int SUCCESS = 200;
 
     private static final int FAIL = -1;
 
@@ -38,6 +38,13 @@
         return result;
     }
 
+    public static Result ok(Object data) {
+        Result result = new Result();
+        result.code = SUCCESS;
+        result.data = data;
+        return result;
+    }
+
     public static Result ok(String msg, Object data) {
         Result result = new Result();
         result.code = SUCCESS;

--
Gitblit v1.9.1