绑定cp清除缓存
This commit is contained in:
parent
a581d569f1
commit
41b8f700d2
@ -9,6 +9,8 @@ import com.red.circle.framework.core.response.CommonErrorCode;
|
|||||||
import com.red.circle.mq.business.model.event.user.CpApplyEvent;
|
import com.red.circle.mq.business.model.event.user.CpApplyEvent;
|
||||||
import com.red.circle.mq.rocket.business.producer.UserMqMessageService;
|
import com.red.circle.mq.rocket.business.producer.UserMqMessageService;
|
||||||
import com.red.circle.other.app.dto.cmd.user.relation.cp.ProcessApplyCmd;
|
import com.red.circle.other.app.dto.cmd.user.relation.cp.ProcessApplyCmd;
|
||||||
|
import com.red.circle.other.domain.gateway.user.UserProfileGateway;
|
||||||
|
import com.red.circle.other.infra.database.cache.service.user.UserRunProfileCacheService;
|
||||||
import com.red.circle.other.infra.database.rds.entity.user.user.CpApply;
|
import com.red.circle.other.infra.database.rds.entity.user.user.CpApply;
|
||||||
import com.red.circle.other.infra.database.rds.entity.user.user.CpRelationship;
|
import com.red.circle.other.infra.database.rds.entity.user.user.CpRelationship;
|
||||||
import com.red.circle.other.infra.database.rds.entity.user.user.CpValue;
|
import com.red.circle.other.infra.database.rds.entity.user.user.CpValue;
|
||||||
@ -22,6 +24,7 @@ import com.red.circle.wallet.inner.endpoint.wallet.WalletGoldClient;
|
|||||||
import com.red.circle.wallet.inner.model.cmd.GoldReceiptCmd;
|
import com.red.circle.wallet.inner.model.cmd.GoldReceiptCmd;
|
||||||
import com.red.circle.wallet.inner.model.enums.GoldOrigin;
|
import com.red.circle.wallet.inner.model.enums.GoldOrigin;
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
@ -43,6 +46,7 @@ public class ProcessCpApplyCmd {
|
|||||||
private final WalletGoldClient walletGoldClient;
|
private final WalletGoldClient walletGoldClient;
|
||||||
private final UserMqMessageService userMqMessageService;
|
private final UserMqMessageService userMqMessageService;
|
||||||
private final CpRelationshipService cpRelationshipService;
|
private final CpRelationshipService cpRelationshipService;
|
||||||
|
private final UserProfileGateway userProfileGateway;
|
||||||
|
|
||||||
public void execute(ProcessApplyCmd cmd) {
|
public void execute(ProcessApplyCmd cmd) {
|
||||||
process(cmd);
|
process(cmd);
|
||||||
@ -89,18 +93,7 @@ public class ProcessCpApplyCmd {
|
|||||||
cmd.requireReqSysOrigin());
|
cmd.requireReqSysOrigin());
|
||||||
}
|
}
|
||||||
|
|
||||||
// giftBackpackClient.incrGiftAndLimit(new GiftBackpackLimitCmd()
|
userProfileGateway.removeCacheAll(Arrays.asList(cpApply.getSendApplyUserId(), cpApply.getAcceptApplyUserId()));
|
||||||
// .setUserId(cpApply.getSendApplyUserId())
|
|
||||||
// .setGiftId(cpGift.getId())
|
|
||||||
// .setQuantity(1)
|
|
||||||
// .setGiftTab(cpGift.getGiftTab())
|
|
||||||
// .setLimitContent(cpApply.getAcceptApplyUserId().toString())
|
|
||||||
// );
|
|
||||||
|
|
||||||
// imMessageClient
|
|
||||||
// .sendMessageText(cpApply.getAcceptApplyUserId().toString(),
|
|
||||||
// cpApply.getSendApplyUserId().toString(),
|
|
||||||
// cmd.getApplyText());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void refuseStatusWait(ProcessApplyCmd cmd, CpApply cpApply) {
|
private void refuseStatusWait(ProcessApplyCmd cmd, CpApply cpApply) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user