package com.winsun.rabbitmq;

import com.winsun.auth.core.shiro.ShiroUser;
import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 *
 * @date 2019/7/16
 */
@Component
public class RabbitProducer {
    @Autowired
    private AmqpTemplate rabbitTemplate;

    public void taskImport(Map<String, Object> type) {
        this.rabbitTemplate.convertAndSend("taskImport", type);
    }

}
