...
|
...
|
@@ -54,8 +54,8 @@ func (l *MiniHomePageUserInfoLogic) MiniHomePageUserInfo(req *types.MiniHomePage |
|
|
Enable: user.Enable,
|
|
|
},
|
|
|
TotalFollower: len(user.Follower),
|
|
|
Followed: lo.Contains(currentUser.Following, user.Id),
|
|
|
MutualFollowed: lo.Contains(user.Following, currentUser.Id),
|
|
|
Followed: currentUser.IsFollowed(user.Id),
|
|
|
MutualFollowed: currentUser.IsFriend(user.Id),
|
|
|
}
|
|
|
if company, _ := domain.LazyLoad(companyMap, l.ctx, conn, user.CompanyId, l.svcCtx.CompanyRepository.FindOne); company != nil {
|
|
|
resp.User.CompanyName = company.Name
|
...
|
...
|
|