From 10b8730043e823efaf7fdea209e7e63f08b9bc4e Mon Sep 17 00:00:00 2001 From: huanghongfa <18228131219@163.com> Date: 星期六, 20 二月 2021 09:45:14 +0800 Subject: [PATCH] zuul --- 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