feat: 二阶段
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package demo.mq;
|
||||
|
||||
import org.apache.rocketmq.spring.core.RocketMQTemplate;
|
||||
|
||||
public class WalletDeductProducer {
|
||||
private RocketMQTemplate rocketMQTemplate;
|
||||
|
||||
public void send(WalletDeductReq req) {
|
||||
rocketMQTemplate.syncSend(CapitalMqConstants.TOPIC + ":" + CapitalMqConstants.TAG_WALLET_DEDUCT, req);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user