个人资料卡增加cpList字段

This commit is contained in:
tianfeng 2026-02-10 15:31:33 +08:00
parent 78c9b31280
commit a0fcb72d4d

View File

@ -12,6 +12,7 @@ import com.red.circle.other.domain.gateway.user.ability.UserRegionGateway;
import com.red.circle.other.domain.gateway.user.ability.UserSVipGateway;
import com.red.circle.other.domain.model.user.UserProfile;
import com.red.circle.other.infra.common.game.GameKtvCommon;
import com.red.circle.other.infra.database.cache.service.cp.CpRelationshipCacheService;
import com.red.circle.other.infra.database.mongo.entity.live.RoomProfileManager;
import com.red.circle.other.infra.database.mongo.entity.team.team.TeamMember;
import com.red.circle.other.infra.database.mongo.service.live.RoomProfileManagerService;
@ -48,6 +49,7 @@ public class UserProfileCardQryExe {
private final RedisService redisService;
private final RoomProfileManagerService roomProfileManagerService;
private final UserRegionGateway userRegionGateway;
private final CpRelationshipCacheService cpRelationshipCacheService;
public UserProfileCardCO execute(UserCardQryCmd cmd) {
@ -89,6 +91,9 @@ public class UserProfileCardQryExe {
String isUpdateCountry = redisService.getString("IS_UPDATE_COUNTRY:" + cmd.requiredReqUserId());
result.getUserProfile().setIsUpdateCountry(StringUtils.isNotBlank(isUpdateCountry) ? isUpdateCountry : "0");
// 填充用户CP信息
userProfileDTO.setCpList(cpRelationshipCacheService.getUserCpList(userProfile.getId()));
return result;
}