update 同步ruoyi

This commit is contained in:
疯狂的狮子Li
2022-10-12 11:03:28 +08:00
6 changed files with 17 additions and 14 deletions

View File

@@ -85,12 +85,12 @@ public class R<T> implements Serializable {
return r;
}
public Boolean isError() {
return !isSuccess();
public static <T> Boolean isError(R<T> ret) {
return !isSuccess(ret);
}
public Boolean isSuccess() {
return R.SUCCESS == getCode();
public static <T> Boolean isSuccess(R<T> ret) {
return R.SUCCESS == ret.getCode();
}
}