Commit 137b98dd authored by shiyu's avatar shiyu

客态展示关注关系

parent 68040f59
......@@ -7,6 +7,7 @@ public class FollowFansEnum {
FOLLOWED(1, "已关注"),
BOTH_FOLLOWED(2, "互相关注"),
BACK_FOLLOWED(3, "回关"),
SELF(4, "本人"),
;
private int code;
......
......@@ -253,6 +253,10 @@ public class FollowFansRecordServiceImpl implements FollowFansRecordService {
} else {
id = followFansRecordVo.getFollowerId();
}
if (id == dto.getCurrentUserId()) {
followFansRecordVo.setRelation("");
followFansRecordVo.setRelationCode(FollowFansEnum.RelationEnum.SELF.getCode());
}
if (currentFollowIdList.contains(id) && currentFansIdList.contains(id)) {
followFansRecordVo.setRelation("互相关注");
followFansRecordVo.setRelationCode(FollowFansEnum.RelationEnum.BOTH_FOLLOWED.getCode());
......
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