feat:增加查询个人朋友圈接口

This commit is contained in:
2025-06-30 22:52:09 +08:00
parent ec5636e6d2
commit 2a31d63a41
5 changed files with 37 additions and 9 deletions

View File

@@ -70,9 +70,14 @@ public class MomentServiceImpl implements MomentService {
}
@Override
public List<MomentDto> queryMoment() {
public List<MomentDto> queryMomentList() {
// TODO 只能查询好友的朋友圈
return momentDao.queryMoment();
return momentDao.queryMomentList();
}
@Override
public List<MomentDto> queryMomentById(Long id) {
return momentDao.queryMomentById(id);
}
@Override
@@ -114,7 +119,7 @@ public class MomentServiceImpl implements MomentService {
queryWrapper.eq(MomentLike::getMomentId, momentId).eq(MomentLike::getCreateBy, StpUtil.getLoginIdAsString());
MomentLike like = momentLikeMapper.selectOne(queryWrapper);
if (like == null ) {
if (like == null) {
throw new CustomException("该朋友圈不存在");
}