From 390edc5e3e6d28cb95328934b48a6121f0f88a09 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期二, 20 九月 2022 10:51:08 +0800 Subject: [PATCH] update 优化 oss管理 支持时间排序 --- ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java index 70584c6..12dc16c 100644 --- a/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java +++ b/ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java @@ -75,4 +75,11 @@ return r; } + public Boolean isError() { + return !isSuccess(); + } + + public Boolean isSuccess() { + return R.SUCCESS == getCode(); + } } -- Gitblit v1.9.3