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

用户简介

parent 3d0504bf
...@@ -51,6 +51,9 @@ public class ThemeQo implements Serializable { ...@@ -51,6 +51,9 @@ public class ThemeQo implements Serializable {
@ApiModelProperty(value = "用户头像") @ApiModelProperty(value = "用户头像")
private String userImg; private String userImg;
@ApiModelProperty(value = "用户简介")
private String userIntroduction;
@ApiModelProperty(value = "当前用户是否关注该作者") @ApiModelProperty(value = "当前用户是否关注该作者")
private boolean follow; private boolean follow;
......
...@@ -377,6 +377,7 @@ public class ProductService { ...@@ -377,6 +377,7 @@ public class ProductService {
if (!StringUtils.isEmpty(themeQo.getAuthorId()) && userMap.containsKey(themeQo.getAuthorId())) { if (!StringUtils.isEmpty(themeQo.getAuthorId()) && userMap.containsKey(themeQo.getAuthorId())) {
themeQo.setNickName(userMap.get(themeQo.getAuthorId()).getUiUsernameMp()); themeQo.setNickName(userMap.get(themeQo.getAuthorId()).getUiUsernameMp());
themeQo.setUserImg(userMap.get(themeQo.getAuthorId()).getUiHeadimgMp()); themeQo.setUserImg(userMap.get(themeQo.getAuthorId()).getUiHeadimgMp());
themeQo.setUserIntroduction(userMap.get(themeQo.getAuthorId()).getUiIntroductionMp());
} }
if (themeQo.getContent() == null) { if (themeQo.getContent() == null) {
continue; continue;
...@@ -415,7 +416,7 @@ public class ProductService { ...@@ -415,7 +416,7 @@ public class ProductService {
.product(product).build()); .product(product).build());
} }
} else if (themeContent.getType().equals(RelTypeEnum.SINGLE_IMG.type)) { } else if (themeContent.getType().equals(RelTypeEnum.SINGLE_IMG.type)) {
// //单图封装到imglist列表中
if (imgUrlMap.containsKey(themeContent.getValue())) { if (imgUrlMap.containsKey(themeContent.getValue())) {
FileRecordEntity imgEntity = imgUrlMap.get(themeContent.getValue()); FileRecordEntity imgEntity = imgUrlMap.get(themeContent.getValue());
String extInfo = imgEntity.getExtInfo(); String extInfo = imgEntity.getExtInfo();
......
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