feat:增加查询个人朋友圈接口
This commit is contained in:
@@ -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("该朋友圈不存在");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user