Commit a2f16cb8 authored by 刘基明's avatar 刘基明

用户简介

parent dfa3d640
...@@ -36,7 +36,7 @@ public class HomePageManager { ...@@ -36,7 +36,7 @@ public class HomePageManager {
List<FollowQo> followQos = new ArrayList<>(); List<FollowQo> followQos = new ArrayList<>();
if (!CollectionUtils.isEmpty(userIds)) { if (!CollectionUtils.isEmpty(userIds)) {
List<UserInfoEntity> userInfos = userInfoService.queryUserByIds(userIds); List<UserInfoEntity> userInfos = userInfoService.queryUserByIds(userIds);
List<FollowQo> collect = userInfos.stream().map(ConvertUtil::homePageEntity2FollowQo).collect(Collectors.toList()); List<FollowQo> collect = userInfos.stream().map(ConvertUtil::userInfoEntity2FollowQo).collect(Collectors.toList());
followQos = judgeFollowed(collect, userId); followQos = judgeFollowed(collect, userId);
} }
......
...@@ -93,7 +93,9 @@ public class ThemeManager { ...@@ -93,7 +93,9 @@ public class ThemeManager {
if (ThemeListTypeEnum.RECOMMEND.getCode().equals(req.getType())) { if (ThemeListTypeEnum.RECOMMEND.getCode().equals(req.getType())) {
// TODO:推荐 // TODO:推荐
themeEntities = themeService.selectAll(req.getLastId(), req.getPageSize()); themeEntities = themeService.selectAll(req.getLastId(), req.getPageSize());
Set<String> recomondThemeIds;
Set<String> hotThemeIds;
Set<String> newThemeIds;
} else if (ThemeListTypeEnum.FOLLOW.getCode().equals(req.getType())) { } else if (ThemeListTypeEnum.FOLLOW.getCode().equals(req.getType())) {
//根据关注列表查询 //根据关注列表查询
List<String> fansList = followRelService.queryFansByFollowerId(userId); List<String> fansList = followRelService.queryFansByFollowerId(userId);
......
...@@ -175,14 +175,14 @@ public class ConvertUtil { ...@@ -175,14 +175,14 @@ public class ConvertUtil {
return list; return list;
} }
public static FollowQo homePageEntity2FollowQo(UserInfoEntity entity) { public static FollowQo userInfoEntity2FollowQo(UserInfoEntity entity) {
if (entity == null) { if (entity == null) {
return null; return null;
} }
return FollowQo.builder().userId(entity.getId()) return FollowQo.builder().userId(entity.getId())
.nickName(entity.getUiUsernameMp()) .nickName(entity.getUiUsernameMp())
.headImg(entity.getUiHeadimgMp()) .headImg(entity.getUiHeadimgMp())
.introduction(entity.getUiIntroduction()) .introduction(entity.getUiIntroductionMp())
.build(); .build();
} }
......
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