From 003eb090f7c84cda124ebeff60ab8a6b82b1c09d Mon Sep 17 00:00:00 2001
From: Null <281575458@qq.com>
Date: 星期六, 20 三月 2021 09:49:15 +0800
Subject: [PATCH] UserService

---
 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