Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
f5bec709
Commit
f5bec709
authored
Sep 12, 2022
by
RuoYi
Browse files
R add isError and isSuccess method
parent
87c53a04
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/R.java
View file @
f5bec709
...
@@ -102,4 +102,14 @@ public class R<T> implements Serializable
...
@@ -102,4 +102,14 @@ public class R<T> implements Serializable
{
{
this
.
data
=
data
;
this
.
data
=
data
;
}
}
public
Boolean
isError
()
{
return
!
isSuccess
();
}
public
Boolean
isSuccess
()
{
return
R
.
SUCCESS
==
getCode
();
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment