package com.xingxi.common.mq.publisher.wxmessage;

import com.xingxi.common.mq.bo.wxmessage.WxSubscribeMessageBO;
import com.xingxi.common.mq.constant.WxSubscribeMessageMqKey;
import com.xingxi.common.mq.core.AbstractRabbitPublisher;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@RequiredArgsConstructor
public class WxSubscribeMessagePublisher extends AbstractRabbitPublisher {

    public void sendMessage(WxSubscribeMessageBO wxSubscribeMessageBO){
        log.info("微信订阅消息发布[{}]", wxSubscribeMessageBO);
        super.send(wxSubscribeMessageBO, WxSubscribeMessageMqKey.EDIT_EXCHANGE, WxSubscribeMessageMqKey.EDIT_ROUTE_FOR_WXSUBSCRIBEMESSAGE_PUBLISH);
    }


}
