Commit f5bec709 authored by RuoYi's avatar RuoYi
Browse files

R add isError and isSuccess method

parent 87c53a04
......@@ -102,4 +102,14 @@ public class R<T> implements Serializable
{
this.data = data;
}
public Boolean isError()
{
return !isSuccess();
}
public Boolean isSuccess()
{
return R.SUCCESS == getCode();
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment