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

import com.xingxi.common.mq.bo.invoice.InvoiceBO;
import com.xingxi.common.mq.constant.InvoiceMqKey;
import com.xingxi.common.mq.core.AbstractRabbitPublisher;
import org.springframework.stereotype.Component;

/**
 * @ClassName InvoiceApplyMqPublisher
 * @projectName Xingxi
 * @Deacription
 * @Author FZ.Dong
 * @Date 2022/11/4 13:27
 * @Version 1.0
 **/


@Component
public class InvoiceApplyMqPublisher extends AbstractRabbitPublisher {
    public void sendMessage(InvoiceBO invoiceBO){
        super.send(invoiceBO, InvoiceMqKey.EDIT_EXCHANGE, InvoiceMqKey.EDIT_ROUTE_INVOICE_FOR_APPLY);
    }
}
