Commit d99392f1 authored by shiyu's avatar shiyu

新增个人简介

parent 0dcee256
package com.wwdz.ch.wx.impl;
import com.github.pagehelper.PageInfo;
import com.wwdz.ch.core.consts.FollowFansEnum;
import com.wwdz.ch.core.consts.MessageEnum;
import com.wwdz.ch.core.consts.ResultCode;
import com.wwdz.ch.core.type.PageSearchResult;
import com.wwdz.ch.core.type.Result;
import com.wwdz.ch.core.util.CacheUtil;
import com.wwdz.ch.core.util.RedisUtils;
......@@ -145,6 +147,7 @@ public class FollowFansRecordServiceImpl implements FollowFansRecordService {
//查询关注的人
dto.setFansId(dto.getSearchTargetId());
List<FollowFansRecord> followFansRecordList = followFansRecordDao.findList(dto);
PageInfo<FollowFansRecord> pageInfo = new PageInfo<>(followFansRecordList);
//查询粉丝
FollowFansRecordRequestDto followFansRecordRequestDto = new FollowFansRecordRequestDto();
......@@ -169,7 +172,7 @@ public class FollowFansRecordServiceImpl implements FollowFansRecordService {
followFansRecordVos.add(followFansRecordVo);
});
List<FollowFansRecordVo> followFansRecordVoList = getCurrentFollowRelation(dto, followFansRecordVos);
return Result.success(followFansRecordVoList);
return Result.success(PageSearchResult.of(pageInfo, followFansRecordVoList));
} catch (Exception e) {
logger.error("{} 查询关注列表 {}", dto.getId(), e);
}
......@@ -185,6 +188,7 @@ public class FollowFansRecordServiceImpl implements FollowFansRecordService {
List<FollowFansRecordVo> followFansRecordVos = new ArrayList<>();
dto.setFollowerId(dto.getSearchTargetId());
List<FollowFansRecord> followFansRecordList = followFansRecordDao.findList(dto);
PageInfo<FollowFansRecord> pageInfo = new PageInfo<>(followFansRecordList);
//查询关注的人
FollowFansRecordRequestDto followFansRecordRequestDto = new FollowFansRecordRequestDto();
......@@ -208,7 +212,7 @@ public class FollowFansRecordServiceImpl implements FollowFansRecordService {
followFansRecordVos.add(followFansRecordVo);
});
List<FollowFansRecordVo> followFansRecordVoList = getCurrentFollowRelation(dto, followFansRecordVos);
return Result.success(followFansRecordVoList);
return Result.success(PageSearchResult.of(pageInfo, followFansRecordVoList));
} catch (Exception e) {
logger.error("{} 查询粉丝列表 {}", dto.getId(), e);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment