修改首页列表

This commit is contained in:
曹佳豪 2025-07-15 15:39:59 +08:00
parent 2e4047005f
commit 5e239c99a4

View File

@ -210,8 +210,17 @@ public class VlogServiceImpl extends BaseInfoProperties implements VlogService {
vo.setCommentsCounts(getVlogComment(v.getId())); vo.setCommentsCounts(getVlogComment(v.getId()));
return vo; return vo;
}).collect(Collectors.toList()); }).collect(Collectors.toList());
// TODO: 组装PagedGridResult返回
return null; // 封装分页结果
PagedGridResult gridResult = new PagedGridResult();
gridResult.setRows(voList); // 当前页数据列表
gridResult.setPage(current); // 当前页码
gridResult.setRecords(vlogPage.getTotal()); // 总记录数
gridResult.setTotal(vlogPage.getPages()); // 总页数
return gridResult;
} }
@Override @Override