|
@@ -38,8 +38,7 @@ public class BaseResponseAdvice implements ResponseBodyAdvice<Object> {
|
|
}
|
|
}
|
|
if(body instanceof Page){
|
|
if(body instanceof Page){
|
|
Page page = (Page) body;
|
|
Page page = (Page) body;
|
|
- return new PageInfo(page.getCurrent(), page.getSize(), page.getTotal(), page.getRecords());
|
|
|
|
-
|
|
|
|
|
|
+ return ResultData.ok(new PageInfo(page.getCurrent(), page.getSize(), page.getTotal(), page.getRecords()));
|
|
}
|
|
}
|
|
if (body instanceof ResultData) {
|
|
if (body instanceof ResultData) {
|
|
return body;
|
|
return body;
|