直播分页返回最后页码

This commit is contained in:
xuwenbo
2020-09-09 19:44:41 +08:00
parent 5b575d268e
commit 539c3cb077
2 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,7 @@ public class YxWechatLiveServiceImpl extends BaseServiceImpl<YxWechatLiveMapper,
wechatLiveVo.setContent(liveDtos); wechatLiveVo.setContent(liveDtos);
wechatLiveVo.setTotalElements(page.getTotal()); wechatLiveVo.setTotalElements(page.getTotal());
wechatLiveVo.setPageNumber(page.getPageNum()); wechatLiveVo.setPageNumber(page.getPageNum());
wechatLiveVo.setLastPage(page.getPages());
return wechatLiveVo; return wechatLiveVo;
} }
@Override @Override

View File

@ -14,5 +14,7 @@ public class WechatLiveVo {
private Integer pageNumber; private Integer pageNumber;
private Integer lastPage;
} }