From b932b837f29e6be3be8cac4cf768a208ea28c683 Mon Sep 17 00:00:00 2001
From: findyguo <12205921@qq.com>
Date: 星期四, 04 三月 2021 16:25:50 +0800
Subject: [PATCH] 留言新增

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/R.java |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/R.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/R.java
index a3f595b..e535937 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/R.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/vos/R.java
@@ -87,5 +87,14 @@
         return apiResult;
     }
 
+    /**
+     * 请求是否成功
+     * @return
+     */
+    public static boolean isOk(R r){
+        return r.code==Constants.SUCCESS.intValue();
+    }
+
+
 
 }

--
Gitblit v1.7.1